mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kded: correct condition for initial sycoca database re-creation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
609dc64f8a
commit
fcee5ed25f
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue