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:
Daniel Teske
2012-03-28 14:57:10 +02:00
parent 2bd4758fe4
commit 68790aa20a

View File

@@ -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;
} }
} }