forked from qt-creator/qt-creator
QbsProjectManager: Fix displaying generated files
We did not update the project tree after building, so newly generated files would not appear there right away. Change-Id: I76ebc213ef43833203013186b0f0b38597cb1834 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
@@ -622,7 +622,12 @@ void QbsProject::cancelParsing()
|
||||
void QbsProject::updateAfterBuild()
|
||||
{
|
||||
QTC_ASSERT(m_qbsProject.isValid(), return);
|
||||
m_projectData = m_qbsProject.projectData();
|
||||
const qbs::ProjectData &projectData = m_qbsProject.projectData();
|
||||
if (projectData == m_projectData)
|
||||
return;
|
||||
qCDebug(qbsPmLog) << "Updating data after build";
|
||||
m_projectData = projectData;
|
||||
rootProjectNode()->update();
|
||||
updateBuildTargetData();
|
||||
updateCppCompilerCallData();
|
||||
if (m_extraCompilersPending) {
|
||||
|
||||
Reference in New Issue
Block a user