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:
Kurt Hindenburg
2010-11-10 05:19:30 +00:00
parent eb53c7b0c3
commit 1236ba56d4
2 changed files with 7 additions and 3 deletions

View File

@@ -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);