mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-23 06:50:58 -04:00
Remove support for clearing the Klipper history.
KDE Plasma 5 doesn't provide the DBus interface anymore and this avoids the QtDBus dependency.
This commit is contained in:
parent
2170794d9c
commit
6d1ca363af
4 changed files with 0 additions and 21 deletions
|
@ -21,11 +21,6 @@
|
|||
#include <QClipboard>
|
||||
#include <QTimer>
|
||||
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
#endif
|
||||
|
||||
#include "core/Config.h"
|
||||
|
||||
Clipboard* Clipboard::m_instance(Q_NULLPTR);
|
||||
|
@ -75,11 +70,6 @@ void Clipboard::clearClipboard()
|
|||
clipboard->clear(QClipboard::Selection);
|
||||
}
|
||||
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
||||
QDBusMessage message = QDBusMessage::createMethodCall("org.kde.klipper", "/klipper", "", "clearClipboardHistory");
|
||||
QDBusConnection::sessionBus().send(message);
|
||||
#endif
|
||||
|
||||
m_lastCopied.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue