diff options
author | dt <qtc-committer@nokia.com> | 2010-03-26 14:06:54 +0100 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-03-26 16:11:30 +0100 |
commit | 3e0c6e3ce36bc2f29a92d78443925066b5772fba (patch) | |
tree | 0c4004f4ee0aa6ad2897151ced317342e5ee29ca /src/plugins/projectexplorer | |
parent | 8418e6c038153636cd0da32cb35615bf9bfeed0d (diff) |
setStartupProject(0) now works as it should
Remove code that tries to be clever, I'm pretty sure it's better this
way.
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/projectexplorer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index ea5d2727f4..201c84ac39 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -949,11 +949,8 @@ void ProjectExplorerPlugin::setStartupProject(Project *project) qDebug() << "ProjectExplorerPlugin::setStartupProject"; if (!project) - project = d->m_currentProject; - if (!project) return; d->m_session->setStartupProject(project); - // NPE: Visually mark startup project updateActions(); } @@ -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() |