diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 92d2951f..2ba77e9f 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -494,11 +494,13 @@ void ViewManager::sessionFinished() return; } - // The last session/tab, and only one view (no splits), emit empty() - // so that close() is called in MainWindow, fixes #432077 - if (_viewContainer->count() == 1 && _viewContainer->currentTabViewCount() == 1) { - Q_EMIT empty(); - return; + if (_navigationMethod == TabbedNavigation) { + // The last session/tab, and only one view (no splits), emit empty() + // so that close() is called in MainWindow, fixes #432077 + if (_viewContainer->count() == 1 && _viewContainer->currentTabViewCount() == 1) { + Q_EMIT empty(); + return; + } } auto *session = qobject_cast(sender());