From 362244ccbe694442b9145bbcea975f91b4c44af1 Mon Sep 17 00:00:00 2001 From: Elvis Angelaccio Date: Wed, 25 Apr 2018 13:42:18 +0200 Subject: 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. --- src/dolphintabpage.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphintabpage.cpp') 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); + } } } -- cgit v1.3