comparison ui/mainwindow.cpp @ 691:315103410002

(Issue 32) Move updates header text generation out of update avialable block This fixes recalculating the available certificate updates after an installation was done.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 15:43:14 +0200
parents e4abb41484a0
children 3791a277f00b
comparison
equal deleted inserted replaced
690:e4abb41484a0 691:315103410002
880 newRemoveCerts.append(cert); 880 newRemoveCerts.append(cert);
881 mUpdatesRemove->addCertificate(cert, state); 881 mUpdatesRemove->addCertificate(cert, state);
882 } 882 }
883 } 883 }
884 } 884 }
885 mUpdatesHeader->setText("<h2>" + 885 }
886 mUpdatesHeader->setText("<h2>" +
886 tr("Updates (%1/%2)") 887 tr("Updates (%1/%2)")
887 .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount()) 888 .arg(mUpdatesNew->selectedCertCount() + mUpdatesRemove->selectedCertCount())
888 .arg(newRemoveCerts.size() + newInstallCerts.size()) + "</h2>"); 889 .arg(newRemoveCerts.size() + newInstallCerts.size()) + "</h2>");
889 mLastCertUpdate->setText(tr("Last update of certificates: %1") 890 mLastCertUpdate->setText(tr("Last update of certificates: %1")
890 .arg(mInstalledList.date().toString())); 891 .arg(mInstalledList.date().toString()));
891 }
892 mUpdatesNewCertificates->setText("<h3>" + 892 mUpdatesNewCertificates->setText("<h3>" +
893 tr("Install new trusted certificates (%1/%2)") 893 tr("Install new trusted certificates (%1/%2)")
894 .arg(mUpdatesNew->selectedCertCount()) 894 .arg(mUpdatesNew->selectedCertCount())
895 .arg(mUpdatesNew->certificates().size()) + 895 .arg(mUpdatesNew->certificates().size()) +
896 "</h3>"); 896 "</h3>");

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