changeset 839:b108510bac5a

(issue71) Fix state toggle information.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 28 Jul 2014 18:42:59 +0200
parents 78c8ce22d9f4
children c9a31544aaab
files ui/certificateitemwidget.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/certificateitemwidget.cpp	Mon Jul 28 15:01:26 2014 +0200
+++ b/ui/certificateitemwidget.cpp	Mon Jul 28 18:42:59 2014 +0200
@@ -135,7 +135,7 @@
 
 void CertificateItemWidget::currentStateChanged(int)
 {
-    bool state = mComboBox->currentData().toBool();
+    bool state = !mComboBox->currentIndex();
     emit stateChanged(state, mCertificate);
 }
 

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