Commit 832d91b3 authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Ensure that a session manager is created even if there are now windows


(cherry picked from commit c27de8b6)
parent 75d3c02a
Pipeline #264863 canceled with stage
......@@ -186,6 +186,9 @@ int KonquerorApplication::startFirstInstance()
QString programName = QApplication::applicationFilePath();
//Ensure a session manager is created
KonqSessionManager::self();
const int ret = exec();
bool alwaysPreload = KonqSettings::alwaysHavePreloaded();
......
......@@ -303,7 +303,6 @@ KonqMainWindow::KonqMainWindow(const QUrl &initialURL)
//qCDebug(KONQUEROR_LOG) << this << "created";
KonqSessionManager::self();
m_fullyConstructed = true;
}
......
......@@ -363,8 +363,7 @@ KonqSessionManager::KonqSessionManager()
const int interval = KonqSettings::autoSaveInterval();
if (interval > 0) {
m_autoSaveTimer.setInterval(interval * 1000);
connect(&m_autoSaveTimer, SIGNAL(timeout()), this,
SLOT(autoSaveSession()));
connect(&m_autoSaveTimer, &QTimer::timeout, this, &KonqSessionManager::autoSaveSession);
}
enableAutosave();
......
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