forked from qt-creator/qt-creator
Startup: Do not switch away from the welcome mode
This commit is contained in:
@@ -592,9 +592,11 @@ bool SessionManager::createImpl(const QString &fileName)
|
|||||||
m_file->setFileName(fileName);
|
m_file->setFileName(fileName);
|
||||||
setStartupProject(0);
|
setStartupProject(0);
|
||||||
|
|
||||||
|
if (!isDefaultVirgin()) {
|
||||||
m_core->modeManager()->activateMode(Core::Constants::MODE_EDIT);
|
m_core->modeManager()->activateMode(Core::Constants::MODE_EDIT);
|
||||||
m_core->modeManager()->setFocusToCurrentMode();
|
m_core->modeManager()->setFocusToCurrentMode();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_virginSession = true;
|
m_virginSession = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user