diff options
Diffstat (limited to 'src/lib/corelib/buildgraph/buildgraphloader.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/buildgraphloader.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/corelib/buildgraph/buildgraphloader.cpp b/src/lib/corelib/buildgraph/buildgraphloader.cpp index 1b7fb1056..a2ea68eba 100644 --- a/src/lib/corelib/buildgraph/buildgraphloader.cpp +++ b/src/lib/corelib/buildgraph/buildgraphloader.cpp @@ -642,19 +642,13 @@ void BuildGraphLoader::onProductFileListChanged(const ResolvedProductPtr &restor Artifact *artifact = lookupArtifact(restoredProduct, oldBuildData, a->absoluteFilePath, true); QBS_CHECK(artifact); - // handle added filetags - foreach (const FileTag &addedFileTag, changedArtifact->fileTags - a->fileTags) { - artifact->fileTags += addedFileTag; - artifact->product->buildData->artifactsByFileTag[addedFileTag].insert(artifact); - } + foreach (const FileTag &addedFileTag, changedArtifact->fileTags - a->fileTags) + artifact->addFileTag(addedFileTag); // handle removed filetags - foreach (const FileTag &removedFileTag, a->fileTags - changedArtifact->fileTags) { - artifact->fileTags -= removedFileTag; - removeArtifactFromSetByFileTag(artifact, removedFileTag, - artifact->product->buildData->artifactsByFileTag); - } + foreach (const FileTag &removedFileTag, a->fileTags - changedArtifact->fileTags) + artifact->removeFileTag(removedFileTag); } if (changedArtifact->properties->value() != a->properties->value()) { |