mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-15 13:33:11 -04:00
Use QClipboard::clear() instead of setting blank text
* Fixes #9121 and #4498 and #4105
This commit is contained in:
parent
86550f2253
commit
83720e6960
@ -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