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