QmlDesigner: Fix warning

Change-Id: I6dd31b411f636df013495e15d03d47997cb24705
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Thomas Hartmann
2019-10-17 09:43:39 +02:00
parent 3e56a2b81e
commit 0bde9b14cb

View File

@@ -476,7 +476,7 @@ void NodeInstanceView::auxiliaryDataChanged(const ModelNode &node,
const PropertyName &name, const PropertyName &name,
const QVariant &value) const QVariant &value)
{ {
if ((node.isRootNode() && (name == "width" || name == "height") || name == "invisible") if (((node.isRootNode() && (name == "width" || name == "height")) || name == "invisible")
|| name.endsWith(PropertyName("@NodeInstance"))) { || name.endsWith(PropertyName("@NodeInstance"))) {
if (hasInstanceForModelNode(node)) { if (hasInstanceForModelNode(node)) {
NodeInstance instance = instanceForModelNode(node); NodeInstance instance = instanceForModelNode(node);