Recommit patch as this wasn't causing the crashes.

BUG: 240037

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1198147
This commit is contained in:
Kurt Hindenburg
2010-11-17 15:33:09 +00:00
parent 0dc0cd3c2c
commit 6441f929a5
2 changed files with 3 additions and 7 deletions

View File

@@ -360,13 +360,8 @@ void ViewManager::sessionFinished()
Session* session = qobject_cast<Session*>(sender());
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();
}
// We're using setSelectionBehaviorOnRemove(QTabBar::SelectPreviousTab)
// so no need to manually select next tab.
Q_ASSERT(session);