mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 12:15:33 -04:00
Remove previous commit as it cause a lot of crashes for apps using
Konsole Part. CCBUG: 240037 svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1194920
This commit is contained in:
@@ -360,8 +360,13 @@ void ViewManager::sessionFinished()
|
||||
|
||||
Session* session = qobject_cast<Session*>(sender());
|
||||
|
||||
// We're using setSelectionBehaviorOnRemove(QTabBar::SelectPreviousTab)
|
||||
// so no need to manually select next tab.
|
||||
if ( _sessionMap[qobject_cast<TerminalDisplay*>(activeView())] == session )
|
||||
{
|
||||
// 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 next view
|
||||
nextView();
|
||||
}
|
||||
|
||||
Q_ASSERT(session);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user