Mercurial > trustbridge
changeset 703:2c63bb63de76
(Issue26) Only show manually changed certificates if there are manually changed certificates
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 02 Jul 2014 11:49:39 +0200 |
parents | 9dea3d895f53 |
children | 6bb3018b966d |
files | ui/mainwindow.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"));