From fcee5ed25fa2dc43beeb4af0ed2a363902d1c2e0 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 23 May 2022 23:58:30 +0300 Subject: [PATCH] kded: correct condition for initial sycoca database re-creation Signed-off-by: Ivailo Monev --- kded/kded.cpp | 4 ++-- kded/kded.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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