forked from qt-creator/qt-creator
QbsProjectManager: Emit the fileListUpdated() signal...
... after adding and removing files. We need to do this for qbs because in contrast to other build system managers, we have optimized away the re-parse step. Change-Id: Iec217819621696081d6e8b87ef48be0be681372c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -295,6 +295,7 @@ bool QbsProject::addFilesToProduct(QbsBaseProjectNode *node, const QStringList &
|
|||||||
QbsGroupNode::setupFiles(node, reRetrieveGroupData(productData, groupData),
|
QbsGroupNode::setupFiles(node, reRetrieveGroupData(productData, groupData),
|
||||||
allPaths, QFileInfo(productFilePath).absolutePath(), true);
|
allPaths, QFileInfo(productFilePath).absolutePath(), true);
|
||||||
m_rootProjectNode->update();
|
m_rootProjectNode->update();
|
||||||
|
emit fileListChanged();
|
||||||
}
|
}
|
||||||
return notAdded->isEmpty();
|
return notAdded->isEmpty();
|
||||||
}
|
}
|
||||||
@@ -323,6 +324,7 @@ bool QbsProject::removeFilesFromProduct(QbsBaseProjectNode *node, const QStringL
|
|||||||
QbsGroupNode::setupFiles(node, reRetrieveGroupData(productData, groupData), allPaths,
|
QbsGroupNode::setupFiles(node, reRetrieveGroupData(productData, groupData), allPaths,
|
||||||
QFileInfo(productFilePath).absolutePath(), true);
|
QFileInfo(productFilePath).absolutePath(), true);
|
||||||
m_rootProjectNode->update();
|
m_rootProjectNode->update();
|
||||||
|
emit fileListChanged();
|
||||||
}
|
}
|
||||||
return notRemoved->isEmpty();
|
return notRemoved->isEmpty();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user