diff options
| author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-06-07 10:58:40 +0200 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-06-07 15:21:49 +0200 |
| commit | 0a70dce41160783c726f822eff81ae30b83acfdc (patch) | |
| tree | 94dcf0c2aa5995084dcfba9999c803ef883ea9bc /src/lib/buildgraph/rulesapplicator.cpp | |
| parent | 46dde94890f89299cbad4097d82fdb9051fbbcef (diff) | |
| download | qbs-0a70dce41160783c726f822eff81ae30b83acfdc.tar.gz | |
fix checkForPropertyChanges for product values
checkForPropertyChanges always returned true, because we stored tracked
product properties with the module name "product".
Introduce the enum Property::Kind instead of abusing the module name.
Task-number: QBS-305
Change-Id: I51a1eb28f0bb3245d7e926685f3a0fe01f981959
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/buildgraph/rulesapplicator.cpp')
| -rw-r--r-- | src/lib/buildgraph/rulesapplicator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/rulesapplicator.cpp b/src/lib/buildgraph/rulesapplicator.cpp index b5ec6ffde..96054c328 100644 --- a/src/lib/buildgraph/rulesapplicator.cpp +++ b/src/lib/buildgraph/rulesapplicator.cpp @@ -328,7 +328,8 @@ void RulesApplicator::onPropertyRead(const QScriptValue &object, const QString & const QScriptValue &value) { if (object.objectId() == m_productObjectId) - engine()->addProperty(Property(QLatin1String("product"), name, value.toVariant())); + engine()->addProperty( + Property(QString(), name, value.toVariant(), Property::PropertyInProduct)); } } // namespace Internal |
