[PATCH] (Issue26) Only show manually changed certificates if there are manually changed certificates
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 2 11:49:43 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1404294579 -7200
# Node ID 2c63bb63de769793f721708f142924d2d178ebdd
# Parent 9dea3d895f532a0818f6674a21b3ddc320caf683
(Issue26) Only show manually changed certificates if there are manually changed certificates
diff -r 9dea3d895f53 -r 2c63bb63de76 ui/mainwindow.cpp
--- a/ui/mainwindow.cpp Wed Jul 02 11:31:44 2014 +0200
+++ b/ui/mainwindow.cpp Wed Jul 02 11:49:39 2014 +0200
@@ -625,6 +625,8 @@
SIGNAL(clicked()),
this,
SLOT(toggleUpdatesManual()));
+ mUpdatesDetailsManual->hide();
+ mUpdatesManualCertificates->hide();
updatesManualLayout->addWidget(mUpdatesManualCertificates);
updatesManualLayout->addWidget(mUpdatesDetailsManual);
updatesManualLayout->insertStretch(2, 10);
@@ -815,6 +817,14 @@
int totalCount = mUpdatesRemove->selectedCertCount() +
mUpdatesNew->selectedCertCount() + mUpdatesManual->certificates().size();
+ if (mUpdatesManual->certificates().size()) {
+ mUpdatesDetailsManual->show();
+ mUpdatesManualCertificates->show();
+ } else {
+ mUpdatesDetailsManual->hide();
+ mUpdatesManualCertificates->hide();
+ }
+
if (!totalCount) {
/* No changes */
mQuitButton->setText(" " + tr("Quit"));
More information about the Trustbridge-commits
mailing list