diff options
author | deva <deva> | 2010-08-18 14:09:16 +0000 |
---|---|---|
committer | deva <deva> | 2010-08-18 14:09:16 +0000 |
commit | 91970dbba11c663f9d6d5b40b8c563dc05b332b9 (patch) | |
tree | 078eea0d5559c0a332162e11cc696576792d8122 /client/widgets/combobox.cc | |
parent | abe143670b174e2604c97224df14732bf059f151 (diff) |
Do not enable all children recursively. Make eventOnChange recursive on-demand.
Diffstat (limited to 'client/widgets/combobox.cc')
-rw-r--r-- | client/widgets/combobox.cc | 12 |
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); } |