qt: Do not use QClipboard::Selection on Windows and macOS.

Windows and macOS do not support the global mouse selection.
pull/826/head
Hennadii Stepanov 4 years ago
parent f0fa32450e
commit 7f3a5980c1
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -628,8 +628,11 @@ bool SetStartOnSystemStartup(bool fAutoStart) { return false; }
void setClipboard(const QString& str) void setClipboard(const QString& str)
{ {
QApplication::clipboard()->setText(str, QClipboard::Clipboard); QClipboard* clipboard = QApplication::clipboard();
QApplication::clipboard()->setText(str, QClipboard::Selection); clipboard->setText(str, QClipboard::Clipboard);
if (clipboard->supportsSelection()) {
clipboard->setText(str, QClipboard::Selection);
}
} }
fs::path qstringToBoostPath(const QString &path) fs::path qstringToBoostPath(const QString &path)

Loading…
Cancel
Save