diff options
| author | Dominik Wenger <domonoky@googlemail.com> | 2008-07-12 12:54:11 +0000 |
|---|---|---|
| committer | Dominik Wenger <domonoky@googlemail.com> | 2008-07-12 12:54:11 +0000 |
| commit | 70029587ca0a7a2c0ffdbc48145c369385dfc803 (patch) | |
| tree | 6aab852f09eb6a2eb36a853b613e97f84db9bb2d | |
| parent | 6acee7d33344c2279107caec8fa4c2f64a6c895e (diff) | |
| download | rockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.zip rockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.tar.gz rockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.tar.bz2 rockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.tar.xz | |
rbutil: call processEvents while uninstalling, so GUI doesnt freeze.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18014 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/rbutilqt/uninstall.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/uninstall.cpp b/rbutil/rbutilqt/uninstall.cpp index 4bd5c90..fda802f 100644 --- a/rbutil/rbutilqt/uninstall.cpp +++ b/rbutil/rbutilqt/uninstall.cpp @@ -49,6 +49,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp) for(int i=0; i< uninstallSections.size() ; i++) { m_dp->addItem(tr("Uninstalling ") + uninstallSections.at(i) + " ...",LOGINFO); + QCoreApplication::processEvents(); // create list of all other install sections QStringList sections = installlog.childGroups(); sections.removeAt(sections.indexOf(uninstallSections.at(i))); @@ -80,6 +81,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp) if(deleteFile && !QFile::remove(toDelete.filePath())) m_dp->addItem(tr("Could not delete: ")+ toDelete.filePath(),LOGWARNING); installlog.remove(toDeleteList.at(j)); + qDebug() << "deleted: " << toDelete.filePath() ; } else // if it is a dir, remember it for later deletion { @@ -88,6 +90,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp) dirList << toDeleteList.at(j); } installlog.endGroup(); + QCoreApplication::processEvents(); } // delete the dirs installlog.beginGroup(uninstallSections.at(i)); |