summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-02-27 10:09:08 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-03-01 10:17:23 +0000
commitcda1a52338789e91cc3bfcd5784363c5fa9e7ef4 (patch)
tree6daa6a50f5e949262d5dd3651c0d5d22dfb11a15 /src
parent779de6dde45e8173eff748dcb311c60c58e4ae60 (diff)
downloadqbs-cda1a52338789e91cc3bfcd5784363c5fa9e7ef4.tar.gz
Do not emit warnings for properties set on non-present modules
Either the dependeny is required, in which case there will be an error anyway, or it is not, in which case it is implied that setting the property is intended for the success case. Change-Id: I54269ee62e5aea94b11899846e6b5b1abddd323a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/lib/corelib/language/moduleloader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp
index 5a789621b..f6c148f21 100644
--- a/src/lib/corelib/language/moduleloader.cpp
+++ b/src/lib/corelib/language/moduleloader.cpp
@@ -387,6 +387,8 @@ private:
// inside Artifact items...
|| item->type() == ItemType::Module
+ || (item->type() == ItemType::ModuleInstance && !item->isPresentModule())
+
// The Properties child of a SubProject item is not a regular item.
|| item->type() == ItemType::PropertiesInSubProject) {
return;