mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Assure that after "Split View" has been executed, that the second view gets the focus instead of the first view.
BUG: 161365 svn path=/trunk/KDE/kdebase/apps/; revision=803984
This commit is contained in:
parent
03aa2029d7
commit
5e36288789
1 changed files with 6 additions and 1 deletions
|
@ -500,11 +500,15 @@ void DolphinMainWindow::toggleSplitView()
|
|||
m_viewTab[m_tabIndex].secondaryView->view()->reload();
|
||||
m_viewTab[m_tabIndex].secondaryView->setActive(false);
|
||||
m_viewTab[m_tabIndex].secondaryView->show();
|
||||
|
||||
setActiveViewContainer(m_viewTab[m_tabIndex].secondaryView);
|
||||
} else if (m_activeViewContainer == m_viewTab[m_tabIndex].primaryView) {
|
||||
// remove secondary view
|
||||
m_viewTab[m_tabIndex].secondaryView->close();
|
||||
m_viewTab[m_tabIndex].secondaryView->deleteLater();
|
||||
m_viewTab[m_tabIndex].secondaryView = 0;
|
||||
|
||||
setActiveViewContainer(m_viewTab[m_tabIndex].primaryView);
|
||||
} else {
|
||||
// The secondary view is active, hence from a users point of view
|
||||
// the content of the secondary view should be moved to the primary view.
|
||||
|
@ -515,9 +519,10 @@ void DolphinMainWindow::toggleSplitView()
|
|||
m_viewTab[m_tabIndex].primaryView->deleteLater();
|
||||
m_viewTab[m_tabIndex].primaryView = m_viewTab[m_tabIndex].secondaryView;
|
||||
m_viewTab[m_tabIndex].secondaryView = 0;
|
||||
|
||||
setActiveViewContainer(m_viewTab[m_tabIndex].primaryView);
|
||||
}
|
||||
|
||||
setActiveViewContainer(m_viewTab[m_tabIndex].primaryView);
|
||||
updateViewActions();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue