Commit bfb6a233 authored by Nicolas Fella's avatar Nicolas Fella

Don't sync clipboard when passwordhint is set

parent 749dcfa1
Pipeline #5422 passed with stage
in 15 minutes and 24 seconds
......@@ -20,6 +20,8 @@
#include "clipboardlistener.h"
#include <QMimeData>
ClipboardListener::ClipboardListener()
: clipboard(QGuiApplication::clipboard())
{
......@@ -32,6 +34,10 @@ void ClipboardListener::updateClipboard(QClipboard::Mode mode)
return;
}
if (clipboard->mimeData()->data(QStringLiteral("x-kde-passwordManagerHint")) == QByteArrayLiteral("secret")) {
return;
}
QString content = clipboard->text();
if (content == currentContent) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment