summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-08-27 08:47:38 +0000
committerdeva <deva>2008-08-27 08:47:38 +0000
commitb74d14e7e8625ce1a148105f69e3406f7d88ecd6 (patch)
tree8740abb06cb214efdd9a081b636c77c940f17ff4
parente5721134b1a27b7695761a004e304223c5dd9cb9 (diff)
Fixed getValue on combox in select mode.
-rw-r--r--client/widgets/combobox.cc5
1 files changed, 4 insertions, 1 deletions
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());
}