From f1bd54a50852907efb3c8ada60a064e956b93ec4 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 12 Apr 2014 22:49:00 +0200 Subject: [PATCH] Daemon is a KUniqueApplication now, to avoid having more than one instance --- kded/kdeconnectd.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kded/kdeconnectd.cpp b/kded/kdeconnectd.cpp index 365b9ca3c..c0d966ee4 100644 --- a/kded/kdeconnectd.cpp +++ b/kded/kdeconnectd.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include #include #include @@ -70,11 +70,10 @@ int main(int argc, char* argv[]) KCmdLineArgs::init(argc, argv, &aboutData); - KApplication app(true); // WARNING GUI required for QClipboard access + KUniqueApplication app(true); // WARNING GUI required for QClipboard access app.disableSessionManagement(); app.setQuitOnLastWindowClosed(false); - //Force daemon to destroy when KApplications in alive //belongs to bug KApplications resoure freeing Daemon* daemon = new Daemon(0);