mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Made more changes
This commit is contained in:
parent
68cda76aa8
commit
e8a4868943
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue