mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
MainApplication: Fix opening session with SelectSession after launch action
This commit is contained in:
parent
1aa4b41151
commit
72c6a73e29
@ -322,12 +322,14 @@ MainApplication::MainApplication(int &argc, char** argv)
|
|||||||
|
|
||||||
if (m_isStartingAfterCrash || afterLaunch() == RestoreSession) {
|
if (m_isStartingAfterCrash || afterLaunch() == RestoreSession) {
|
||||||
m_restoreManager = new RestoreManager(sessionManager()->lastActiveSessionPath());
|
m_restoreManager = new RestoreManager(sessionManager()->lastActiveSessionPath());
|
||||||
if (m_restoreManager->isValid()) {
|
if (!m_restoreManager->isValid()) {
|
||||||
restoreSession(window, m_restoreManager->restoreData());
|
|
||||||
} else {
|
|
||||||
destroyRestoreManager();
|
destroyRestoreManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!m_isStartingAfterCrash && m_restoreManager) {
|
||||||
|
restoreSession(window, m_restoreManager->restoreData());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QTimer::singleShot(0, this, SLOT(postLaunch()));
|
QTimer::singleShot(0, this, SLOT(postLaunch()));
|
||||||
|
Loading…
Reference in New Issue
Block a user