comparison ui/certificateitemwidget.cpp @ 839:b108510bac5a

(issue71) Fix state toggle information.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 28 Jul 2014 18:42:59 +0200
parents 4eff77851e76
children bd33c6585cd0
comparison
equal deleted inserted replaced
838:78c8ce22d9f4 839:b108510bac5a
133 return mCertificate; 133 return mCertificate;
134 } 134 }
135 135
136 void CertificateItemWidget::currentStateChanged(int) 136 void CertificateItemWidget::currentStateChanged(int)
137 { 137 {
138 bool state = mComboBox->currentData().toBool(); 138 bool state = !mComboBox->currentIndex();
139 emit stateChanged(state, mCertificate); 139 emit stateChanged(state, mCertificate);
140 } 140 }
141 141
142 void IconOnlyTextPopupBox::showPopup() { 142 void IconOnlyTextPopupBox::showPopup() {
143 for (int i = 0; i < count(); i++) { 143 for (int i = 0; i < count(); i++) {

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