From 27e92da0c3a99e594cb3bdbe28b02cf688ceb354 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Mon, 2 Jan 2023 19:54:32 +0400 Subject: [PATCH] Set x-kde-passwordManagerHint on BSD Linux and BSD are the same in this regard. Use `Q_OS_UNIX` to cover both families. Found while configuring CopyQ to ignore clipboard changes with this MIME type as per their FAQ[0] and wondering why it had no effect on OpenBSD. 0: https://copyq.readthedocs.io/en/latest/faq.html#how-to-omit-storing-text-copied-from-specific-windows-like-a-password-manager --- src/gui/Clipboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/Clipboard.cpp b/src/gui/Clipboard.cpp index 2def33c811..4248926c18 100644 --- a/src/gui/Clipboard.cpp +++ b/src/gui/Clipboard.cpp @@ -58,7 +58,7 @@ void Clipboard::setText(const QString& text, bool clear) clipboard->setMimeData(mime, QClipboard::Clipboard); #else mime->setText(text); -#ifdef Q_OS_LINUX +#ifdef Q_OS_UNIX mime->setData("x-kde-passwordManagerHint", QByteArrayLiteral("secret")); #endif #ifdef Q_OS_WIN