[SCM] Kaboom - Debian KDE 3->4 migration tool branch, master, updated. 45021862d7e39cd86264f5d5a296b23fda27a015

George Kiagiadakis gkiagia-guest at alioth.debian.org
Sun Feb 22 21:41:31 UTC 2009


The following commit has been merged in the master branch:
commit 65022e79340c5cf0bb0cba4644e4cb9ebc1b53ab
Author: George Kiagiadakis <gkiagia at users.sourceforge.net>
Date:   Sun Feb 22 23:33:25 2009 +0200

    When exiting from recursiveRmDir(), call processEvents() to make the progressbar reach 100% visually.

diff --git a/diroperations/diroperations.cpp b/diroperations/diroperations.cpp
index 233920f..1eee9c0 100644
--- a/diroperations/diroperations.cpp
+++ b/diroperations/diroperations.cpp
@@ -306,6 +306,9 @@ void recursiveRmDir(const QString & dir, ProgressDialogInterface *pd)
                 //count the directory special file before it is removed
                 bytesRemoved += QFileInfo(currentDir, tmpname).size();
                 pd->setValue(bytesRemoved);
+                //if we are about to quit, process events before exiting the loop (to make the progressbar reach 100%)
+                if ( quit )
+                    pd->processEvents();
             }
 
             if ( !currentDir.rmdir(tmpname) )

-- 
Kaboom - Debian KDE 3->4 migration tool



More information about the pkg-kde-commits mailing list