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

List:       kde-commits
Subject:    branches/extragear/graphics/digikam/0.11/libs/database/haar
From:       Andi Clemens <andi.clemens () gmx ! net>
Date:       2009-03-25 21:39:26
Message-ID: 1238017166.887326.19322.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 944651 by aclemens:

make sure the progress bar is really set to 100% when search is finished

 M  +5 -1      haariface.cpp  


--- branches/extragear/graphics/digikam/0.11/libs/database/haar/haariface.cpp #944650:944651
@@ -708,12 +708,16 @@
 
         progress++;
 
-        if (observer && (progress == total || progress % progressStep == 0) )
+        if (observer && (progress == total || progress % progressStep == 0))
         {
             observer->processedNumber(progress);
         }
     }
 
+    // make sure the progress bar is really set to 100% when search is finished
+    if (observer)
+        observer->processedNumber(total);
+
     d->enableCachedSignatures(false);
 
     return resultsMap;
[prev in list] [next in list] [prev in thread] [next in thread] 

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