We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fa324 commit 7f3a598Copy full SHA for 7f3a598
src/qt/guiutil.cpp
@@ -628,8 +628,11 @@ bool SetStartOnSystemStartup(bool fAutoStart) { return false; }
628
629
void setClipboard(const QString& str)
630
{
631
- QApplication::clipboard()->setText(str, QClipboard::Clipboard);
632
- QApplication::clipboard()->setText(str, QClipboard::Selection);
+ QClipboard* clipboard = QApplication::clipboard();
+ clipboard->setText(str, QClipboard::Clipboard);
633
+ if (clipboard->supportsSelection()) {
634
+ clipboard->setText(str, QClipboard::Selection);
635
+ }
636
}
637
638
fs::path qstringToBoostPath(const QString &path)
0 commit comments