forked from qt-creator/qt-creator
Fixes: - Restoring session doesn't end up with focus in editor
RevBy: - dt Details: - ProjectWindow always grabbed the focus
This commit is contained in:
@@ -628,8 +628,10 @@ bool SessionManager::loadImpl(const QString &fileName)
|
||||
if (success) {
|
||||
// restore the active mode
|
||||
const QString &modeIdentifier = value(QLatin1String("ActiveMode")).toString();
|
||||
if (!modeIdentifier.isEmpty())
|
||||
if (!modeIdentifier.isEmpty()) {
|
||||
m_core->modeManager()->activateMode(modeIdentifier);
|
||||
m_core->modeManager()->setFocusToCurrentMode();
|
||||
}
|
||||
}
|
||||
|
||||
if (debug)
|
||||
|
||||
Reference in New Issue
Block a user