mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-26 03:46:49 -08:00
Use QClipboard::clear() instead of setting blank text
* Fixes #9121 and #4498 and #4105
This commit is contained in:
1 parent
58c4d1de1e
commit
2ee9d501ff
1 file changed
+2
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user