diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp index 66d890bb92b..909adf82fc5 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp @@ -299,9 +299,11 @@ void PropertyEditorValue::exportPopertyAsAlias() bool PropertyEditorValue::hasPropertyAlias() const { - if (modelNode().isValid()) - if (modelNode().isRootNode()) - return false; + if (!modelNode().isValid()) + return false; + + if (modelNode().isRootNode()) + return false; if (!modelNode().hasId()) return false;