Skip to content
GitLab
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
e703cbae
Commit
e703cbae
authored
Sep 22, 2022
by
loh tar
Committed by
Christoph Cullmann
Sep 23, 2022
Browse files
Sidebar: Don't save a session while session restore is running
BUG:459108
parent
20c8b60e
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemdi.cpp
View file @
e703cbae
...
...
@@ -1204,6 +1204,11 @@ void Sidebar::restoreSession(KConfigGroup &config)
void
Sidebar
::
saveSession
(
KConfigGroup
&
config
)
{
// Don't try to save a session while we are still in "session restore mode" BUG:459108
if
(
m_sessionRestoreRunning
)
{
return
;
}
config
.
writeEntry
(
QStringLiteral
(
"Kate-MDI-Sidebar-%1-Splitter"
).
arg
(
position
()),
sizes
());
config
.
writeEntry
(
QStringLiteral
(
"Kate-MDI-Sidebar-%1-LastSize"
).
arg
(
position
()),
m_lastSize
);
...
...
apps/lib/katemdi.h
View file @
e703cbae
...
...
@@ -385,6 +385,7 @@ private:
// Session restore only
std
::
map
<
QString
,
int
>
m_tvIdToTabId
;
std
::
map
<
QString
,
int
>
m_tvIdToTabBar
;
bool
m_sessionRestoreRunning
=
false
;
int
m_lastSize
;
int
m_popupButton
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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