Made more changes

This commit is contained in:
arnav dhamija 2017-01-29 23:31:43 +05:30
parent 68cda76aa8
commit e8a4868943
2 changed files with 1 additions and 3 deletions

View file

@ -528,11 +528,9 @@ void DolphinMainWindow::toggleSplitStash()
{ {
DolphinTabPage* tabPage = m_tabWidget->currentTabPage(); DolphinTabPage* tabPage = m_tabWidget->currentTabPage();
QAction* stashSplit = actionCollection()->action(QStringLiteral("split_stash")); QAction* stashSplit = actionCollection()->action(QStringLiteral("split_stash"));
//stashSplit->setEnabled(false);
if (stashSplit->isChecked()) { if (stashSplit->isChecked()) {
tabPage->setSplitViewEnabled(false); tabPage->setSplitViewEnabled(false);
tabPage->setSplitViewEnabled(true, QUrl("stash:/")); tabPage->setSplitViewEnabled(true, QUrl("stash:/"));
stashSplit->setChecked(true);
} else { } else {
tabPage->setSplitViewEnabled(false); tabPage->setSplitViewEnabled(false);
} }

View file

@ -71,7 +71,7 @@ bool DolphinTabPage::splitViewEnabled() const
return m_splitViewEnabled; return m_splitViewEnabled;
} }
void DolphinTabPage::setSplitViewEnabled(bool enabled, QUrl secondaryUrl /*= QUrl()*/) void DolphinTabPage::setSplitViewEnabled(bool enabled, QUrl secondaryUrl)
{ {
if (m_splitViewEnabled != enabled) { if (m_splitViewEnabled != enabled) {
m_splitViewEnabled = enabled; m_splitViewEnabled = enabled;