Skip to content

Commit

Permalink
qt: Do not use QClipboard::Selection on Windows and macOS.
Browse files Browse the repository at this point in the history
Windows and macOS do not support the global mouse selection.
  • Loading branch information
hebasto committed Apr 10, 2021
1 parent f0fa324 commit ad87cef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,10 @@ bool SetStartOnSystemStartup(bool fAutoStart) { return false; }
void setClipboard(const QString& str)
{
QApplication::clipboard()->setText(str, QClipboard::Clipboard);
#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
// Windows and macOS do not support the global mouse selection.
QApplication::clipboard()->setText(str, QClipboard::Selection);
#endif
}

fs::path qstringToBoostPath(const QString &path)
Expand Down

0 comments on commit ad87cef

Please sign in to comment.