diff options
| author | arnav dhamija <[email protected]> | 2017-02-02 21:46:54 +0530 |
|---|---|---|
| committer | arnav dhamija <[email protected]> | 2017-02-02 21:46:54 +0530 |
| commit | 8f28ceaad109d9366049b0a7381685e975519c77 (patch) | |
| tree | 8768cdd9e856c44a99b13d63d89fdab819e16fda /src/dolphinmainwindow.cpp | |
| parent | e8a48689431e0fc7b9ae0ed3fd0113227d4b99cb (diff) | |
More happy with this patch
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 09fc7732b..f9d44c92d 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -528,12 +528,8 @@ void DolphinMainWindow::toggleSplitStash() { DolphinTabPage* tabPage = m_tabWidget->currentTabPage(); QAction* stashSplit = actionCollection()->action(QStringLiteral("split_stash")); - if (stashSplit->isChecked()) { - tabPage->setSplitViewEnabled(false); - tabPage->setSplitViewEnabled(true, QUrl("stash:/")); - } else { - tabPage->setSplitViewEnabled(false); - } + tabPage->setSplitViewEnabled(false); + tabPage->setSplitViewEnabled(true, QUrl("stash:/")); } void DolphinMainWindow::reloadView() @@ -1057,7 +1053,7 @@ void DolphinMainWindow::setupActions() stashSplit->setText(i18nc("@action:intoolbar Stash", "Stash")); stashSplit->setToolTip(i18nc("@info", "Opens the stash virtual directory in a split window")); stashSplit->setIcon(QIcon::fromTheme(QStringLiteral("folder-visiting"))); - stashSplit->setCheckable(true); + stashSplit->setCheckable(false); connect(stashSplit, &QAction::triggered, this, &DolphinMainWindow::toggleSplitStash); QAction* reload = actionCollection()->addAction(QStringLiteral("reload")); @@ -1491,7 +1487,6 @@ void DolphinMainWindow::updateSplitAction() splitAction->setText(i18nc("@action:intoolbar Split view", "Split")); splitAction->setToolTip(i18nc("@info", "Split view")); splitAction->setIcon(QIcon::fromTheme(QStringLiteral("view-right-new"))); - stashSplit->setChecked(false); } } |
