mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-23 15:00:47 -04:00
parent
60c2d89cb0
commit
4b5248ee98
1 changed files with 5 additions and 0 deletions
|
@ -59,7 +59,12 @@ void Clipboard::setText(const QString& text, bool clear)
|
|||
clipboard->setMimeData(mime, QClipboard::Clipboard);
|
||||
#else
|
||||
mime->setText(text);
|
||||
#ifdef Q_OS_LINUX
|
||||
mime->setData("x-kde-passwordManagerHint", QByteArrayLiteral("secret"));
|
||||
#endif
|
||||
#ifdef Q_OS_WIN
|
||||
mime->setData("ExcludeClipboardContentFromMonitorProcessing", QByteArrayLiteral("1"));
|
||||
#endif
|
||||
clipboard->setMimeData(mime, QClipboard::Clipboard);
|
||||
|
||||
if (clipboard->supportsSelection()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue