Commit 7ade00c7 authored by dt's avatar dt
Browse files

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

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