diff options
| author | Sergey Kalinichev <[email protected]> | 2017-03-11 20:33:41 +0300 |
|---|---|---|
| committer | Sergey Kalinichev <[email protected]> | 2017-03-12 11:48:12 +0300 |
| commit | 042b0c84099c062847fa2ed46a145624a96f90ca (patch) | |
| tree | 4848f8ece85c0f940bc350c5b65351808cc52895 /src/dolphinmainwindow.cpp | |
| parent | e8eb6a7f2c27f5ae569fe2427a2034527f9552fe (diff) | |
Revert "Make "show filter bar" a toggle action"
This reverts commit edf8e5737316204e4a96e5edf4cba4cdec1c71ef.
See https://git.reviewboard.kde.org/r/129662 for discussion
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 2784bd08c..431ecda44 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -552,9 +552,9 @@ void DolphinMainWindow::disableStopAction() actionCollection()->action(QStringLiteral("stop"))->setEnabled(false); } -void DolphinMainWindow::showFilterBar(bool show) +void DolphinMainWindow::showFilterBar() { - m_activeViewContainer->setFilterBarVisible(show); + m_activeViewContainer->setFilterBarVisible(true); } void DolphinMainWindow::toggleEditLocation() @@ -1108,7 +1108,7 @@ void DolphinMainWindow::setupActions() KStandardAction::home(this, SLOT(goHome()), actionCollection()); // setup 'Tools' menu - KToggleAction* showFilterBar = actionCollection()->add<KToggleAction>(QStringLiteral("show_filter_bar")); + QAction* showFilterBar = actionCollection()->addAction(QStringLiteral("show_filter_bar")); showFilterBar->setText(i18nc("@action:inmenu Tools", "Show Filter Bar")); showFilterBar->setIcon(QIcon::fromTheme(QStringLiteral("view-filter"))); actionCollection()->setDefaultShortcut(showFilterBar, Qt::CTRL | Qt::Key_I); |
