From bb1b44ae445238dc8b4b97f42f7050ac7f3d06bb Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 10 Sep 2008 10:01:58 +0000 Subject: Made combobox setValue with invalid string unselect. --- client/widgets/combobox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3