Commit dd54d507 authored by Ahmad Samir's avatar Ahmad Samir Committed by Christoph Cullmann

Make "Save Session" action ask for a name for anonymous sessions

Summary:
When invoking "Save Session", kate should ask for a session name if
the session is anonymous, i.e. the same behaviour when using saving a
a new file/unnamed document.

BUG: 319396
FIXED-IN: 19.04.0

Test Plan:
Opening a kate instance with a new/anonymous session and invoking
"Save Session" should ask the user to enter a name for the session.

Reviewers: #kate, cullmann, dhaumann

Reviewed By: #kate, cullmann

Subscribers: ngraham, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D19017
parent ec60a271
......@@ -413,7 +413,11 @@ void KateSessionManager::sessionNew()
void KateSessionManager::sessionSave()
{
saveActiveSession(); // this is the optional point to handle saveSessionAs for anonymous session
if (activeSession() && activeSession()->isAnonymous()) {
sessionSaveAs();
} else {
saveActiveSession();
}
}
void KateSessionManager::sessionSaveAs()
......
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