diff --git a/src/lib/app/mainapplication.cpp b/src/lib/app/mainapplication.cpp index ae23a0c36..4583658b5 100644 --- a/src/lib/app/mainapplication.cpp +++ b/src/lib/app/mainapplication.cpp @@ -322,12 +322,14 @@ MainApplication::MainApplication(int &argc, char** argv) if (m_isStartingAfterCrash || afterLaunch() == RestoreSession) { m_restoreManager = new RestoreManager(sessionManager()->lastActiveSessionPath()); - if (m_restoreManager->isValid()) { - restoreSession(window, m_restoreManager->restoreData()); - } else { + if (!m_restoreManager->isValid()) { destroyRestoreManager(); } } + + if (!m_isStartingAfterCrash && m_restoreManager) { + restoreSession(window, m_restoreManager->restoreData()); + } } QTimer::singleShot(0, this, SLOT(postLaunch()));