From: arnav dhamija Date: Thu, 3 Nov 2016 04:05:15 +0000 (+0530) Subject: This seems to work. Though it could be better X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/fa9cc1333aa1bbb1ad5195069e8ddf477746552c This seems to work. Though it could be better --- 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()