[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/runtime/nepomuk/services/strigi
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-02-11 12:31:06
Message-ID: 1265891466.252394.32703.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1088711 by trueg:

Backport: Properly shut down even when rebuilding the dir cache

 M  +7 -0      filesystemwatcher.cpp  


--- branches/KDE/4.4/kdebase/runtime/nepomuk/services/strigi/filesystemwatcher.cpp #1088710:1088711
@@ -196,10 +196,17 @@
                 emit q->dirty( dirIt.filePath() );
             }
         }
+
+        // check if we have been stopped
+        if ( !continueChecking() )
+            return;
     }
 
     for( QHash<QString, FolderEntry>::iterator it = parentEntry.children.begin();
          it != parentEntry.children.end(); ++it ) {
+        // check if we have been stopped
+        if ( !continueChecking() )
+            return;
         updateChildrenCache( parentPath + '/' + it.key(), it.value(), signalNewEntries );
     }
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic