kded: fix regression since 361cc4b2

the cookies server was not starting which means that all on-demand
started services were probably not started
This commit is contained in:
Ivailo Monev 2015-10-03 11:30:44 +03:00
parent 4f2d53668c
commit 04145e76f6

View file

@ -66,6 +66,12 @@ static bool bCheckSycoca;
static bool bCheckUpdates;
static bool bCheckHostname;
#ifdef Q_DBUS_EXPORT
extern Q_DBUS_EXPORT void qDBusAddSpyHook(void (*)(const QDBusMessage&));
#else
extern QDBUS_EXPORT void qDBusAddSpyHook(void (*)(const QDBusMessage&));
#endif
static void runBuildSycoca(QObject *callBackObj=0, const char *callBackSlot=0, const char *callBackErrorSlot=0)
{
const QString exe = KStandardDirs::findExe(KBUILDSYCOCA_EXENAME);
@ -116,7 +122,7 @@ Kded::Kded()
session.registerObject("/kbuildsycoca", this);
session.registerObject("/kded", this);
Q_DBUS_EXPORT(messageFilter);
qDBusAddSpyHook(messageFilter);
m_pTimer = new QTimer(this);
m_pTimer->setSingleShot( true );