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

List:       kde-commits
Subject:    koffice/libs/guiutils
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2009-04-10 13:32:56
Message-ID: 1239370376.059298.29544.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 951876 by rempt:

throttle the updates to whole percents

 M  +4 -0      KoUpdater.cpp  


--- trunk/koffice/libs/guiutils/KoUpdater.cpp #951875:951876
@@ -52,6 +52,10 @@
 
 void KoUpdater::setProgress(int percent)
 {
+    if (progress() >= percent) {
+        return;
+    }
+
     kDebug(30004) << "KoUpdater::setProgress " << percent << " in " << thread();
     emit sigProgress( percent );
     qApp->processEvents();
[prev in list] [next in list] [prev in thread] [next in thread] 

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