changeset 685:248d4f24e618

(Issue 29) Uneditable items are always selected
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 01 Jul 2014 12:06:38 +0200
parents 69def231f5ac
children a2e94e88d304
files ui/certificateitemwidget.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui/certificateitemwidget.cpp	Tue Jul 01 11:36:44 2014 +0200
+++ b/ui/certificateitemwidget.cpp	Tue Jul 01 12:06:38 2014 +0200
@@ -65,6 +65,9 @@
 
 bool CertificateItemWidget::state()
 {
+    if (!mEditable) {
+        return true;
+    }
     return mComboBox->currentData().toBool();
 }
 

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