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