Commit b62b817f authored by Andre Heinecke's avatar Andre Heinecke

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.
parent d1ae6b17
......@@ -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;
......
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