Commit 3e0c6e3c authored by dt's avatar dt
Browse files

setStartupProject(0) now works as it should

Remove code that tries to be clever, I'm pretty sure it's better this
parent 8418e6c0
......@@ -948,12 +948,9 @@ void ProjectExplorerPlugin::setStartupProject(Project *project)
if (debug)
qDebug() << "ProjectExplorerPlugin::setStartupProject";
if (!project)
project = d->m_currentProject;
if (!project)
// NPE: Visually mark startup project
......@@ -1114,12 +1111,7 @@ Project *ProjectExplorerPlugin::startupProject() const
if (debug)
qDebug() << "ProjectExplorerPlugin::startupProject";
Project *pro = d->m_session->startupProject();
if (!pro)
pro = d->m_currentProject;
return pro;
return d->m_session->startupProject();
void ProjectExplorerPlugin::updateWelcomePage()
Supports Markdown
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