diff options
| author | arnav dhamija <[email protected]> | 2016-11-03 09:35:15 +0530 |
|---|---|---|
| committer | arnav dhamija <[email protected]> | 2016-11-03 09:35:15 +0530 |
| commit | fa9cc1333aa1bbb1ad5195069e8ddf477746552c (patch) | |
| tree | db1f15d2365b5f6106bba4d6f3a55a915e0dd9cf /src/dolphinmainwindow.cpp | |
| parent | e7f6a1010ac07dfddaaa75a372dbeaa6d0352731 (diff) | |
This seems to work. Though it could be better
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 9817bf08a..55577e27b 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -527,7 +527,16 @@ void DolphinMainWindow::toggleSplitView() void DolphinMainWindow::toggleSplitStash() { DolphinTabPage* tabPage = m_tabWidget->currentTabPage(); - tabPage->setSplitViewEnabled(!tabPage->splitViewEnabled(), QUrl("stash:/")); + QAction* stashSplit = actionCollection()->action(QStringLiteral("split_stash")); + qDebug() << "StashSplitstate" << stashSplit->isChecked(); + //stashSplit->setEnabled(false); + if (stashSplit->isChecked()) { + tabPage->setSplitViewEnabled(false); + tabPage->setSplitViewEnabled(true, QUrl("stash:/")); + stashSplit->setChecked(true); + } else { + tabPage->setSplitViewEnabled(false); + } } void DolphinMainWindow::reloadView() |
