diff --git a/kded/kded.cpp b/kded/kded.cpp index 8a56aa93..606bdd22 100644 --- a/kded/kded.cpp +++ b/kded/kded.cpp @@ -486,7 +486,7 @@ void Kded::recreate(bool initial) // Using KLauncher here is difficult since we might not have a // database - if (!initial) { + if (initial) { updateDirWatch(); // Update tree first, to be sure to miss nothing. if (runBuildSycoca()) { recreateDone(); @@ -494,7 +494,7 @@ void Kded::recreate(bool initial) recreateFailed(); } } else { - if(!delayedCheck) { + if (!delayedCheck) { updateDirWatch(); // this would search all the directories } if (bCheckSycoca) { diff --git a/kded/kded.h b/kded/kded.h index 3af84a46..e3c5342b 100644 --- a/kded/kded.h +++ b/kded/kded.h @@ -163,7 +163,7 @@ protected Q_SLOTS: /** * @internal Triggers rebuilding */ - void update (const QString& dir ); + void update(const QString& dir); void runDelayedCheck(); @@ -173,7 +173,7 @@ private: /** * Scans dir for new files and new subdirectories. */ - void readDirectory(const QString& dir ); + void readDirectory(const QString& dir); /** * Pointer to the dirwatch class which tells us, when some directories