diff options
| author | deva <deva> | 2008-08-27 08:47:38 +0000 | 
|---|---|---|
| committer | deva <deva> | 2008-08-27 08:47:38 +0000 | 
| commit | b74d14e7e8625ce1a148105f69e3406f7d88ecd6 (patch) | |
| tree | 8740abb06cb214efdd9a081b636c77c940f17ff4 /client/widgets | |
| parent | e5721134b1a27b7695761a004e304223c5dd9cb9 (diff) | |
Fixed getValue on combox in select mode.
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());  }  | 
