Skip to content

Commit

Permalink
Merge 4a1751a into merged_master (Bitcoin PR bitcoin-core/gui#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Jun 30, 2021
2 parents fa8b9c0 + 4a1751a commit 4ea4b46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,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)
Expand Down

0 comments on commit 4ea4b46

Please sign in to comment.