]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/filterbar.cpp
don't clear the filterbar when switching between tabs
[dolphin.git] / src / filterbar.cpp
index 080dd423fb97060034c3bb2aa8c7349935cd1732..36a6d5271a83c59af1d08266672b22d2c3b28c75 100644 (file)
@@ -66,12 +66,9 @@ FilterBar::~FilterBar()
 {
 }
 
-void FilterBar::hideEvent(QHideEvent* event)
+void FilterBar::clear()
 {
-    if (!event->spontaneous()) {
-        m_filterInput->clear();
-        m_filterInput->clearFocus();
-    }
+    m_filterInput->clear();
 }
 
 void FilterBar::showEvent(QShowEvent* event)