summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-07-12 12:54:11 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-07-12 12:54:11 +0000
commit70029587ca0a7a2c0ffdbc48145c369385dfc803 (patch)
tree6aab852f09eb6a2eb36a853b613e97f84db9bb2d /rbutil
parent6acee7d33344c2279107caec8fa4c2f64a6c895e (diff)
downloadrockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.tar.gz
rockbox-70029587ca0a7a2c0ffdbc48145c369385dfc803.zip
rbutil: call processEvents while uninstalling, so GUI doesnt freeze.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18014 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/uninstall.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/uninstall.cpp b/rbutil/rbutilqt/uninstall.cpp
index 4bd5c90485..fda802f445 100644
--- a/rbutil/rbutilqt/uninstall.cpp
+++ b/rbutil/rbutilqt/uninstall.cpp
@@ -49,6 +49,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp)
49 for(int i=0; i< uninstallSections.size() ; i++) 49 for(int i=0; i< uninstallSections.size() ; i++)
50 { 50 {
51 m_dp->addItem(tr("Uninstalling ") + uninstallSections.at(i) + " ...",LOGINFO); 51 m_dp->addItem(tr("Uninstalling ") + uninstallSections.at(i) + " ...",LOGINFO);
52 QCoreApplication::processEvents();
52 // create list of all other install sections 53 // create list of all other install sections
53 QStringList sections = installlog.childGroups(); 54 QStringList sections = installlog.childGroups();
54 sections.removeAt(sections.indexOf(uninstallSections.at(i))); 55 sections.removeAt(sections.indexOf(uninstallSections.at(i)));
@@ -80,6 +81,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp)
80 if(deleteFile && !QFile::remove(toDelete.filePath())) 81 if(deleteFile && !QFile::remove(toDelete.filePath()))
81 m_dp->addItem(tr("Could not delete: ")+ toDelete.filePath(),LOGWARNING); 82 m_dp->addItem(tr("Could not delete: ")+ toDelete.filePath(),LOGWARNING);
82 installlog.remove(toDeleteList.at(j)); 83 installlog.remove(toDeleteList.at(j));
84 qDebug() << "deleted: " << toDelete.filePath() ;
83 } 85 }
84 else // if it is a dir, remember it for later deletion 86 else // if it is a dir, remember it for later deletion
85 { 87 {
@@ -88,6 +90,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp)
88 dirList << toDeleteList.at(j); 90 dirList << toDeleteList.at(j);
89 } 91 }
90 installlog.endGroup(); 92 installlog.endGroup();
93 QCoreApplication::processEvents();
91 } 94 }
92 // delete the dirs 95 // delete the dirs
93 installlog.beginGroup(uninstallSections.at(i)); 96 installlog.beginGroup(uninstallSections.at(i));