From: Peter Penz Date: Wed, 17 Dec 2008 10:35:02 +0000 (+0000) Subject: turn off the filter when closing the filterbar by CTRL+I X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/d05c4ba829dc9b679840a8a3db6e124d0e3e3002?ds=sidebyside turn off the filter when closing the filterbar by CTRL+I BUG: 177948 svn path=/trunk/KDE/kdebase/apps/; revision=897988 --- diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index a70055b5f..8b3def9f3 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -214,6 +214,16 @@ bool DolphinViewContainer::isFilterBarVisible() const return m_filterBar->isVisible(); } +void DolphinViewContainer::showFilterBar(bool show) +{ + Q_ASSERT(m_filterBar != 0); + if (show) { + m_filterBar->show(); + } else { + closeFilterBar(); + } +} + bool DolphinViewContainer::isUrlEditable() const { return m_urlNavigator->isUrlEditable(); @@ -299,12 +309,6 @@ void DolphinViewContainer::closeFilterBar() emit showFilterBarChanged(false); } -void DolphinViewContainer::showFilterBar(bool show) -{ - Q_ASSERT(m_filterBar != 0); - m_filterBar->setVisible(show); -} - void DolphinViewContainer::updateStatusBar() { // As the item count information is less important