diff options
| author | Peter Penz <[email protected]> | 2008-12-17 10:35:02 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-17 10:35:02 +0000 |
| commit | d05c4ba829dc9b679840a8a3db6e124d0e3e3002 (patch) | |
| tree | 49bffe6c664ee2216fc0ddef445277536c62d5ef /src/dolphinviewcontainer.cpp | |
| parent | f9beadde758426f1641bd3d8c1367ee13baf6023 (diff) | |
turn off the filter when closing the filterbar by CTRL+I
BUG: 177948
svn path=/trunk/KDE/kdebase/apps/; revision=897988
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
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 |
