mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-03 01:50:10 -05:00
Use QClipboard::clear() instead of setting blank text
* Fixes #9121 and #4498 and #4105
This commit is contained in:
parent
58c4d1de1e
commit
2ee9d501ff
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user