From d49bdf8f9c7b8b2445e4355c955763ddf6339c19 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 14 Nov 2009 14:10:54 +0000 Subject: [PATCH] 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 --- src/search/searchcriterionselector.cpp | 8 +++----- 1 file 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(); } -- 2.47.3