summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-09-10 10:01:58 +0000
committerdeva <deva>2008-09-10 10:01:58 +0000
commitbb1b44ae445238dc8b4b97f42f7050ac7f3d06bb (patch)
tree9be5da48a54663be389bfbdc1038a5f92dbf994e
parent5652f86efda63c232cef9d626f934080340ff40e (diff)
Made combobox setValue with invalid string unselect.
-rw-r--r--client/widgets/combobox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc
index db8fc2d..2bf6087 100644
--- a/client/widgets/combobox.cc
+++ b/client/widgets/combobox.cc
@@ -122,7 +122,7 @@ void ComboBox::setValue(QString value)
{
int idx = findData(value);
- if(idx != -1) setCurrentIndex(idx);
+ setCurrentIndex(idx);
}
bool ComboBox::isValid()