diff options
Diffstat (limited to 'client/widgets')
| -rw-r--r-- | client/widgets/combobox.cc | 5 | 
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());  } | 
