diff ui/certificateitemwidget.cpp @ 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 c7405d526ead
children 973a7ce19658
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/