Skip to content

Commit

Permalink
Use QClipboard::clear() instead of setting blank text
Browse files Browse the repository at this point in the history
* Fixes #9121 and #4498 and #4105
  • Loading branch information
droidmonkey committed Mar 30, 2023
1 parent 58c4d1d commit 2ee9d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/Clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ void Clipboard::clearCopiedText()

if (m_lastCopied == clipboard->text(QClipboard::Clipboard)
|| m_lastCopied == clipboard->text(QClipboard::Selection)) {
setText("", false);
clipboard->clear(QClipboard::Clipboard);
clipboard->clear(QClipboard::Selection);
}

m_lastCopied.clear();
Expand Down

0 comments on commit 2ee9d50

Please sign in to comment.