This seems to work. Though it could be better

This commit is contained in:
arnav dhamija 2016-11-03 09:35:15 +05:30
parent e7f6a1010a
commit fa9cc1333a

View file

@ -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()