From 7c9808ef5d14139de13b86b7dca8f45ccac1373f Mon Sep 17 00:00:00 2001 From: Stuart Citrin Date: Wed, 22 May 2013 18:48:00 +0200 Subject: Filter bar: add a button that prevents clearing if the URL changes FEATURE: 256651 FIXED-IN: 4.11.0 REVIEW: 107392 --- src/dolphinviewcontainer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/dolphinviewcontainer.cpp') diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 0e413bc61..44d4ee36f 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -162,7 +162,7 @@ DolphinViewContainer::DolphinViewContainer(const KUrl& url, QWidget* parent) : connect(m_filterBar, SIGNAL(focusViewRequest()), this, SLOT(requestFocus())); connect(m_view, SIGNAL(urlChanged(KUrl)), - m_filterBar, SLOT(clear())); + m_filterBar, SLOT(slotUrlChanged())); m_topLayout->addWidget(m_urlNavigator); m_topLayout->addWidget(m_searchBox); @@ -536,8 +536,7 @@ void DolphinViewContainer::showItemInfo(const KFileItem& item) void DolphinViewContainer::closeFilterBar() { - m_filterBar->hide(); - m_filterBar->clear(); + m_filterBar->closeFilterBar(); m_view->setFocus(); emit showFilterBarChanged(false); } -- cgit v1.3