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.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);
}