Use the default profile if the session management's Konsole file is unusable (corrupt/missing/etc).

CCBUG: 203621

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1115480
This commit is contained in:
Kurt Hindenburg
2010-04-16 15:18:21 +00:00
parent cf2522f6e9
commit ed3aee70b2

View File

@@ -955,6 +955,15 @@ void ViewManager::restoreSessions(const KConfigGroup& group)
_viewSplitter->activeContainer()->setActiveView(display);
display->setFocus(Qt::OtherFocusReason);
}
if (ids.isEmpty()) // Session file is unusable, start default Profile
{
Profile::Ptr profile = SessionManager::instance()->defaultProfile();
Session* session = SessionManager::instance()->createSession(profile);
createView(session);
if (!session->isRunning())
session->run();
}
}
uint qHash(QPointer<TerminalDisplay> display)