summaryrefslogtreecommitdiff
path: root/client/widgets/combobox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/combobox.cc')
-rw-r--r--client/widgets/combobox.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc
index ea8a239..de521ba 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -168,11 +168,13 @@ void ComboBox::setValue(QString value, QString source)
int idx = combobox->findData(value);
// printf("setValue(\"%s\") - %d\n", value.toStdString().c_str(), idx);
-
- ischangingbyuser = false;
- combobox->setCurrentIndex(idx);
- ischangingbyuser = true;
-
+ if(combobox->currentIndex() != idx) {
+ ischangingbyuser = false;
+ combobox->setCurrentIndex(idx);
+ ischangingbyuser = true;
+ } else {
+ eventOnChange(true);
+ }
// setInitialValue(value);
}