Commit 511436e6 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

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: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent 7980538e
...@@ -295,6 +295,7 @@ bool QbsProject::addFilesToProduct(QbsBaseProjectNode *node, const QStringList & ...@@ -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 ...@@ -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();
} }
......
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