Skip to content

Commit

Permalink
winrt: avoid duplicate signal emit
Browse files Browse the repository at this point in the history
emitChanged() will be invoked when the system notifies the application
about a clipboard change. Hence, there is no need to call it previously
and cause two signals on the same change to be emitted.

Change-Id: I99605c9a71054e0610006dbeaaa90c5fb2f46755
Reviewed-by: Oliver Wolff <[email protected]>
  • Loading branch information
mauricek committed Aug 25, 2016
1 parent ea4aa5b commit c0a513d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/plugins/platforms/winrt/qwinrtclipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ void QWinRTClipboard::setMimeData(QMimeData *data, QClipboard::Mode mode)
return S_OK;
});
RETURN_VOID_IF_FAILED("Could not set clipboard text.");
emitChanged(mode);
#else // Q_OS_WINPHONE
QPlatformClipboard::setMimeData(data, mode);
#endif // Q_OS_WINPHONE
Expand Down

0 comments on commit c0a513d

Please sign in to comment.