Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
17789a72
Commit
17789a72
authored
Mar 02, 2021
by
Méven Car
Committed by
Christoph Cullmann
Mar 05, 2021
Browse files
Prevent last session to be restored after it was deleted
parent
b6adb596
Changes
1
Show whitespace changes
Inline
Side-by-side
kate/session/katesessionmanager.cpp
View file @
17789a72
...
...
@@ -264,6 +264,12 @@ bool KateSessionManager::deleteSession(KateSession::Ptr session)
return
false
;
}
KConfigGroup
c
(
KSharedConfig
::
openConfig
(),
"General"
);
if
(
c
.
readEntry
(
"Last Session"
)
==
session
->
name
())
{
c
.
writeEntry
(
"Last Session"
,
QString
());
c
.
sync
();
}
QFile
::
remove
(
session
->
file
());
m_sessions
.
remove
(
session
->
name
());
// Due to this remove from m_sessions will updateSessionList() no signal emit,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment