From b74d14e7e8625ce1a148105f69e3406f7d88ecd6 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 27 Aug 2008 08:47:38 +0000 Subject: Fixed getValue on combox in select mode. --- client/widgets/combobox.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/widgets/combobox.cc b/client/widgets/combobox.cc index 8cf2c6b..caa7683 100644 --- a/client/widgets/combobox.cc +++ b/client/widgets/combobox.cc @@ -146,7 +146,10 @@ void ComboBox::setValue(QString value) bool ComboBox::isValid() { - if(combotype == SELECT) return true; + if(combotype == SELECT) { + if(currentIndex() != -1) return true; + else return false; + } return rx.exactMatch(currentText()); } -- cgit v1.2.3