Commit 31ac6bac authored by Robert Knight's avatar Robert Knight

Fix crash on exit in embedded terminal if a session exits after the main widget has been destroyed.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=761904
parent e2579537
......@@ -296,6 +296,11 @@ void ViewManager::detachActiveView()
void ViewManager::sessionFinished()
{
// if this slot is called after the view manager's main widget
// has been destroyed, do nothing
if (!_viewSplitter)
return;
Session* session = qobject_cast<Session*>(sender());
if ( _sessionMap[qobject_cast<TerminalDisplay*>(activeView())] == session )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment