summaryrefslogtreecommitdiff
path: root/kabc
diff options
context:
space:
mode:
Diffstat (limited to 'kabc')
-rw-r--r--kabc/addresseehelper.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kabc/addresseehelper.cpp b/kabc/addresseehelper.cpp
index 725b42c..4ef88be 100644
--- a/kabc/addresseehelper.cpp
+++ b/kabc/addresseehelper.cpp
@@ -24,8 +24,9 @@
#include <kconfiggroup.h>
#include <QApplication>
+#ifndef KDE_NO_DBUS
#include <QtDBus/QtDBus>
-
+#endif
using namespace KABC;
AddresseeHelper *AddresseeHelper::s_self;
@@ -45,10 +46,12 @@ AddresseeHelper::AddresseeHelper()
{
initSettings();
+#ifndef KDE_NO_DBUS
QDBusConnection::sessionBus().connect( QString(), QLatin1String( "/KABC" ),
QLatin1String( "org.kde.kabc.AddressBookConfig" ),
QLatin1String( "changed" ),
this, SLOT(initSettings()));
+#endif
}
// static
@@ -114,4 +117,4 @@ bool AddresseeHelper::tradeAsFamilyName() const
return mTradeAsFamilyName;
}
-#include "addresseehelper.moc" \ No newline at end of file
+#include "addresseehelper.moc"