From cb5a134080f1368beef87f46d5ed4fd7406a98fc Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 2 Sep 2008 20:01:50 +0000 Subject: don't clear the filterbar when switching between tabs BUG: 169878 svn path=/trunk/KDE/kdebase/apps/; revision=856411 --- src/filterbar.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/filterbar.cpp') diff --git a/src/filterbar.cpp b/src/filterbar.cpp index 080dd423f..36a6d5271 100644 --- a/src/filterbar.cpp +++ b/src/filterbar.cpp @@ -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) -- cgit v1.3