summaryrefslogtreecommitdiff
path: root/kabc
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-07-26 12:10:35 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-07-26 12:10:35 (GMT)
commit744ba7fda608f630df8b4985b0df87fbc7570e94 (patch)
tree511bccc585453b6eace4cd3e4f35fbc3fe872b56 /kabc
parent57ee4665bf1a069d9ead75a67c43206538212778 (diff)
downloadlibcalendaring-744ba7fda608f630df8b4985b0df87fbc7570e94.tar.gz
...and another bunch of dbus dependencies
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"