mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +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
|
// Using KLauncher here is difficult since we might not have a
|
||||||
// database
|
// database
|
||||||
|
|
||||||
if (!initial) {
|
if (initial) {
|
||||||
updateDirWatch(); // Update tree first, to be sure to miss nothing.
|
updateDirWatch(); // Update tree first, to be sure to miss nothing.
|
||||||
if (runBuildSycoca()) {
|
if (runBuildSycoca()) {
|
||||||
recreateDone();
|
recreateDone();
|
||||||
|
@ -494,7 +494,7 @@ void Kded::recreate(bool initial)
|
||||||
recreateFailed();
|
recreateFailed();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(!delayedCheck) {
|
if (!delayedCheck) {
|
||||||
updateDirWatch(); // this would search all the directories
|
updateDirWatch(); // this would search all the directories
|
||||||
}
|
}
|
||||||
if (bCheckSycoca) {
|
if (bCheckSycoca) {
|
||||||
|
|
|
@ -163,7 +163,7 @@ protected Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* @internal Triggers rebuilding
|
* @internal Triggers rebuilding
|
||||||
*/
|
*/
|
||||||
void update (const QString& dir );
|
void update(const QString& dir);
|
||||||
|
|
||||||
void runDelayedCheck();
|
void runDelayedCheck();
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ private:
|
||||||
/**
|
/**
|
||||||
* Scans dir for new files and new subdirectories.
|
* 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
|
* Pointer to the dirwatch class which tells us, when some directories
|
||||||
|
|
Loading…
Add table
Reference in a new issue