diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index edf1a41a4..998baccdd 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -353,10 +353,10 @@ void ViewManager::sessionFinished() if ( _sessionMap[qobject_cast(activeView())] == session ) { - // switch to the previous view before deleting the session views to prevent flicker + // switch to the next view before deleting the session views to prevent flicker // occurring as a result of an interval between removing the active view and switching - // to the previous view - previousView(); + // to the next view + nextView(); } Q_ASSERT(session);