comparison ui/mainwindow.cpp @ 1233:7da9ec20eae4

(issue148) Disable UI Updates while loading the list. This removes flickering when updates are loaded.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 24 Sep 2014 15:49:27 +0200
parents f7e890c4dac6
children ad4fc3649ffb
comparison
equal deleted inserted replaced
1232:f7e890c4dac6 1233:7da9ec20eae4
1238 1238
1239 void MainWindow::loadCertificateList() 1239 void MainWindow::loadCertificateList()
1240 { 1240 {
1241 /* TODO (issue134): if nothing is available (neither old nor new) add some progress 1241 /* TODO (issue134): if nothing is available (neither old nor new) add some progress
1242 * indication */ 1242 * indication */
1243 setUpdatesEnabled(false);
1243 mInstallList->clear(); 1244 mInstallList->clear();
1244 mRemoveList->clear(); 1245 mRemoveList->clear();
1245 mUpdatesNew->clear(); 1246 mUpdatesNew->clear();
1246 mUpdatesRemove->clear(); 1247 mUpdatesRemove->clear();
1247 QList<Certificate> newInstallCerts; 1248 QList<Certificate> newInstallCerts;
1356 } 1357 }
1357 } 1358 }
1358 } 1359 }
1359 1360
1360 listChanged(0); 1361 listChanged(0);
1362 setUpdatesEnabled(true);
1361 } 1363 }
1362 1364
1363 void MainWindow::installerError(const QString& errMsg) { 1365 void MainWindow::installerError(const QString& errMsg) {
1364 QMessageBox::warning(this, tr("Error executing update"), errMsg); 1366 QMessageBox::warning(this, tr("Error executing update"), errMsg);
1365 } 1367 }

http://wald.intevation.org/projects/trustbridge/