Commit 68790aa2 authored by Daniel Teske's avatar Daniel Teske
Browse files

On Session restore, set the correct startup project



Task-number: QTCREATORBUG-7161
Change-Id: Ie83961b35f2d7d4419a519a2fe6e4df601a67d1c
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 2bd4758f
......@@ -759,7 +759,7 @@ void SessionManager::restoreStartupProject(const Utils::PersistentSettingsReader
const QString startupProjectPath = startupProject;
foreach (Project *pro, m_projects) {
if (QDir::cleanPath(pro->document()->fileName()) == startupProjectPath) {
setStartupProject(m_startupProject);
setStartupProject(pro);
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment