summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2008-08-21 08:22:19 +0000
committerdeva <deva>2008-08-21 08:22:19 +0000
commitd92fc946f1574370cd780697d0a7e218847418c8 (patch)
treef9bd378e6c93609ed0b71c76594fd5655afc96a9 /client/widgets
parent475882356de5ac95c50cf7e7144117793eec6b2e (diff)
Fixed failing initial set on combobox
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/combobox.cc4
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);
}