Commit e703cbae authored by loh tar's avatar loh tar Committed by Christoph Cullmann
Browse files

Sidebar: Don't save a session while session restore is running

parent 20c8b60e
......@@ -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) {
config.writeEntry(QStringLiteral("Kate-MDI-Sidebar-%1-Splitter").arg(position()), sizes());
config.writeEntry(QStringLiteral("Kate-MDI-Sidebar-%1-LastSize").arg(position()), m_lastSize);
......@@ -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;
Supports Markdown
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