forked from qt-creator/qt-creator
On Session restore, set the correct startup project
Task-number: QTCREATORBUG-7161 Change-Id: Ie83961b35f2d7d4419a519a2fe6e4df601a67d1c Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -759,7 +759,7 @@ void SessionManager::restoreStartupProject(const Utils::PersistentSettingsReader
|
|||||||
const QString startupProjectPath = startupProject;
|
const QString startupProjectPath = startupProject;
|
||||||
foreach (Project *pro, m_projects) {
|
foreach (Project *pro, m_projects) {
|
||||||
if (QDir::cleanPath(pro->document()->fileName()) == startupProjectPath) {
|
if (QDir::cleanPath(pro->document()->fileName()) == startupProjectPath) {
|
||||||
setStartupProject(m_startupProject);
|
setStartupProject(pro);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user