diff options
| author | Elvis Angelaccio <[email protected]> | 2018-04-25 13:42:18 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2018-04-25 13:42:18 +0200 |
| commit | 362244ccbe694442b9145bbcea975f91b4c44af1 (patch) | |
| tree | dccb352b8f5bfd9e2a18b942fcc2c6b5bbf3837a /src/dolphintabpage.cpp | |
| parent | 9ec813597430db05326c24a8e0e07c5539387e27 (diff) | |
DolphinTabPage: deactivate secondary view after closing split view
We deactivate the previously active view container whenever we change the active
split view, but we never do the same when we close the split view.
Long term we should probably even delete the secondary view after
closing the split view, because it will never be used again and the
pointer will be overwritten the next time the user opens the split view.
Diffstat (limited to 'src/dolphintabpage.cpp')
| -rw-r--r-- | src/dolphintabpage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dolphintabpage.cpp b/src/dolphintabpage.cpp index a96c8b6a3..b2bb5c896 100644 --- a/src/dolphintabpage.cpp +++ b/src/dolphintabpage.cpp @@ -312,6 +312,9 @@ void DolphinTabPage::slotViewActivated() m_primaryViewActive = !m_primaryViewActive; } else { m_primaryViewActive = true; + if (m_secondaryViewContainer) { + m_secondaryViewContainer->setActive(false); + } } } |
