qt: Do not use QClipboard::Selection on Windows and macOS.
Windows and macOS do not support the global mouse selection. Github-Pull: bitcoin-core/gui#277 Rebased-From: 7f3a5980c1d54988a707b961fd2ef647cebb4c5b
This commit is contained in:
parent
bd2f4164c6
commit
f220368220
|
@ -734,8 +734,11 @@ bool SetStartOnSystemStartup(bool fAutoStart) { return false; }
|
|||
|
||||
void setClipboard(const QString& str)
|
||||
{
|
||||
QApplication::clipboard()->setText(str, QClipboard::Clipboard);
|
||||
QApplication::clipboard()->setText(str, QClipboard::Selection);
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
clipboard->setText(str, QClipboard::Clipboard);
|
||||
if (clipboard->supportsSelection()) {
|
||||
clipboard->setText(str, QClipboard::Selection);
|
||||
}
|
||||
}
|
||||
|
||||
fs::path qstringToBoostPath(const QString &path)
|
||||
|
|
Loading…
Reference in a new issue