summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-02-16 18:17:17 +0100
committerAndre Heinecke <[email protected]>2016-04-27 17:19:39 +0200
commitb62b817f6f198a2e6f4d942d626c9ea1d830795b (patch)
treee10c71cd65e339f7ed6a099e7595c5e6683b0a22
parentd1ae6b1780ea71ed4bf855462de2090ed314bdbf (diff)
Make DBus integration of the smime conf optional
This is indirect because if you have KCMUtils you already have DBus and so you want to integrate with DBus in the S/MIME config widget.
-rw-r--r--src/conf/smimevalidationconfigurationwidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/conf/smimevalidationconfigurationwidget.cpp b/src/conf/smimevalidationconfigurationwidget.cpp
index aab1e98..e3ba39f 100644
--- a/src/conf/smimevalidationconfigurationwidget.cpp
+++ b/src/conf/smimevalidationconfigurationwidget.cpp
@@ -44,7 +44,9 @@
#include <KLocalizedString>
#include "kleopatra_debug.h"
-#include <QDBusConnection>
+#if HAVE_QDBUS
+# include <QDBusConnection>
+#endif
using namespace Kleo;
using namespace Kleo::Config;
@@ -59,7 +61,9 @@ public:
customHTTPProxyWritable(false),
ui(q)
{
+#if HAVE_QDBUS
QDBusConnection::sessionBus().connect(QString(), QString(), QStringLiteral("org.kde.kleo.CryptoConfig"), QStringLiteral("changed"), q, SLOT(load()));
+#endif
}
bool customHTTPProxyWritable;