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)
if (ids.isEmpty()) // Session file is unusable, start default Profile
Profile::Ptr profile = SessionManager::instance()->defaultProfile();
Session* session = SessionManager::instance()->createSession(profile);
if (!session->isRunning())
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