ProjectExplorer: Make new/open project be also the startup project

Task-Nr: QTCREATORBUG-3530
This commit is contained in:
dt
2011-03-24 21:07:11 +01:00
parent 6f12c73a4f
commit 7ade00c74a

View File

@@ -1181,6 +1181,7 @@ bool ProjectExplorerPlugin::openProject(const QString &fileName)
QList<Project *> list = openProjects(QStringList() << fileName);
if (!list.isEmpty()) {
addToRecentProjects(fileName, list.first()->displayName());
d->m_session->setStartupProject(list.first());
return true;
}
return false;