]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
Follow the setting for which view to close
[dolphin.git] / src / dolphinmainwindow.cpp
index 3acbfdd021ec30e6f48c61c245b910e25662141b..4a327182e9eb6fe4ac38574289043b50046868b6 100644 (file)
@@ -989,8 +989,9 @@ void DolphinMainWindow::popoutSplitView()
     DolphinTabPage *tabPage = m_tabWidget->currentTabPage();
     if (!tabPage->splitViewEnabled())
         return;
-    openNewWindow(tabPage->activeViewContainer()->url());
+    openNewWindow((GeneralSettings::closeActiveSplitView() ? tabPage->activeViewContainer() : tabPage->inactiveViewContainer())->url());
     tabPage->setSplitViewEnabled(false, WithAnimation);
+    updateSplitActions();
 }
 
 void DolphinMainWindow::toggleSplitStash()