# HG changeset patch # User Andre Heinecke # Date 1404222194 -7200 # Node ID 3151034100027256b91337ef1993a6cb4f7d2f56 # Parent e4abb41484a068f17c5ceb27f8f4a5643572ee87 (Issue 32) Move updates header text generation out of update avialable block This fixes recalculating the available certificate updates after an installation was done. diff -r e4abb41484a0 -r 315103410002 ui/mainwindow.cpp --- a/ui/mainwindow.cpp Tue Jul 01 15:40:30 2014 +0200 +++ b/ui/mainwindow.cpp Tue Jul 01 15:43:14 2014 +0200 @@ -882,13 +882,13 @@ } } } - mUpdatesHeader->setText("

" + + } + mUpdatesHeader->setText("

" + tr("Updates (%1/%2)") - .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount()) - .arg(newRemoveCerts.size() + newInstallCerts.size()) + "

"); - mLastCertUpdate->setText(tr("Last update of certificates: %1") + .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount()) + .arg(newRemoveCerts.size() + newInstallCerts.size()) + ""); + mLastCertUpdate->setText(tr("Last update of certificates: %1") .arg(mInstalledList.date().toString())); - } mUpdatesNewCertificates->setText("

" + tr("Install new trusted certificates (%1/%2)") .arg(mUpdatesNew->selectedCertCount())