diff options
| author | Peter Penz <[email protected]> | 2009-11-14 14:10:54 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-11-14 14:10:54 +0000 |
| commit | d49bdf8f9c7b8b2445e4355c955763ddf6339c19 (patch) | |
| tree | 12431acc2432ad9376edbf158a44df789dc1ef12 | |
| parent | 3b773e91a96853476b33dda226b33e4c991cfb99 (diff) | |
don't forget to hide the value-widget again, if e. g. "Any" from "Date:" has been reselected
svn path=/trunk/KDE/kdebase/apps/; revision=1049129
| -rw-r--r-- | src/search/searchcriterionselector.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/search/searchcriterionselector.cpp b/src/search/searchcriterionselector.cpp index 8b08d545e..5a6c41a1e 100644 --- a/src/search/searchcriterionselector.cpp +++ b/src/search/searchcriterionselector.cpp @@ -141,11 +141,9 @@ void SearchCriterionSelector::slotComparatorChanged(int index) const SearchCriterionDescription::Comparator& comp = descr.comparators()[index]; m_valueWidget->initializeValue(comp.autoValueType); - if (!comp.operation.isEmpty() && comp.autoValueType.isEmpty()) { - // only show the value widget, if an operation is defined - // and no automatic calculation is provided - m_valueWidget->show(); - } + // only show the value widget, if an operation is defined + // and no automatic calculation is provided + m_valueWidget->setVisible(!comp.operation.isEmpty() && comp.autoValueType.isEmpty()); emit criterionChanged(); } |
