Commit ed3aee70 authored by Kurt Hindenburg's avatar Kurt Hindenburg

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
parent cf2522f6
......@@ -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)
......
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