Commit 97b2390a authored by Christoph Cullmann's avatar Christoph Cullmann

avoid crash on re-open already running session

just quit kate

BUG: 390740
parent b478ab6c
......@@ -290,8 +290,10 @@ void KateSessionManageDialog::openSession()
}
hide();
KateApp::self()->sessionManager()->activateSession(item->session);
done(ResultOpen);
// this might fail, e.g. if session is in use, then e.g. end kate, bug 390740
const bool success = KateApp::self()->sessionManager()->activateSession(item->session);
done(success ? ResultOpen : ResultQuit);
}
......
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