]> cloud.milkyroute.net Git - dolphin.git/commitdiff
don't forget to hide the value-widget again, if e. g. "Any" from "Date:" has been...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 14 Nov 2009 14:10:54 +0000 (14:10 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 14 Nov 2009 14:10:54 +0000 (14:10 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1049129

src/search/searchcriterionselector.cpp

index 8b08d545ebe3c0689e2b571a8e3817caaa0887c4..5a6c41a1e4ca49eb737a19d45f3e117844cda224 100644 (file)
@@ -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();
 }