forked from qt-creator/qt-creator
Fixes: do not emit startupProjectChanged() if the startup project
has not changed.
Details: saves a few cycles
This commit is contained in:
@@ -527,6 +527,9 @@ void SessionManager::setStartupProject(Project *startupProject)
|
|||||||
Q_ASSERT(m_file->m_projects.contains(startupProject));
|
Q_ASSERT(m_file->m_projects.contains(startupProject));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_file->m_startupProject == startupProject)
|
||||||
|
return;
|
||||||
|
|
||||||
m_file->m_startupProject = startupProject;
|
m_file->m_startupProject = startupProject;
|
||||||
emit startupProjectChanged(startupProject);
|
emit startupProjectChanged(startupProject);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user