diff options
| author | Christian Kandeler <christian.kandeler@digia.com> | 2013-08-29 11:52:12 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-08-30 12:14:01 +0200 |
| commit | b3a23fc7aa6a125a1604f40e2311e5d19aefde55 (patch) | |
| tree | 80bcd6af860fc827af3eb052a93eb9495b931b7a /src/lib/buildgraph | |
| parent | f1b6d6624b24e699f1339de18b7b384fe5a844ca (diff) | |
| download | qbs-b3a23fc7aa6a125a1604f40e2311e5d19aefde55.tar.gz | |
Fix crash on restoring.
Do not apply rules to disabled products.
Change-Id: Ib9b32420ecefdc76e86c80ce2f4d1cb6ad44d4b4
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph')
| -rw-r--r-- | src/lib/buildgraph/buildgraphloader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/buildgraph/buildgraphloader.cpp b/src/lib/buildgraph/buildgraphloader.cpp index da0506e91..76ee12626 100644 --- a/src/lib/buildgraph/buildgraphloader.cpp +++ b/src/lib/buildgraph/buildgraphloader.cpp @@ -508,6 +508,8 @@ void BuildGraphLoader::onProductFileListChanged(const ResolvedProductPtr &produc // Discard groups of the old product. Use the groups of the new one. product->groups = changedProduct->groups; product->properties = changedProduct->properties; + if (!product->enabled) + return; // apply rules for new artifacts foreach (Artifact *artifact, addedArtifacts) |
