diff options
author | deva <deva> | 2008-08-21 08:22:19 +0000 |
---|---|---|
committer | deva <deva> | 2008-08-21 08:22:19 +0000 |
commit | d92fc946f1574370cd780697d0a7e218847418c8 (patch) | |
tree | f9bd378e6c93609ed0b71c76594fd5655afc96a9 /client | |
parent | 475882356de5ac95c50cf7e7144117793eec6b2e (diff) |
Fixed failing initial set on combobox
Diffstat (limited to 'client')
-rw-r--r-- | client/widgets/combobox.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index 39a957b..aff5c7b 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -115,6 +115,9 @@ ComboBox::ComboBox(QDomNode &node, MacroWindow *macrowindow) //setEditText(elem.attribute("value")); break; } + + // Hack to force currentIndexChanged event. + setCurrentIndex(-1); } QString ComboBox::getValue() @@ -132,6 +135,7 @@ QString ComboBox::getValue() void ComboBox::setValue(QString value) { int idx = findData(value); + if(idx != -1) setCurrentIndex(idx); } |