kded: correct condition for initial sycoca database re-creation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-23 23:58:30 +03:00
parent 609dc64f8a
commit fcee5ed25f
2 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -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