forked from qt-creator/qt-creator
QmlDesigner: Always skip when condition
There is no reason to set the when condition ever. Change-Id: I4c6b5ca04cdb7ba62f833225c6878da83a02abaf Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -89,8 +89,7 @@ void QmlStateNodeInstance::deactivateState()
|
||||
|
||||
void QmlStateNodeInstance::setPropertyVariant(const PropertyName &name, const QVariant &value)
|
||||
{
|
||||
bool isStateOfTheRootModelNode = parentInstance() && parentInstance()->isRootNodeInstance();
|
||||
if (name == "when" && (isStateOfTheRootModelNode))
|
||||
if (name == "when")
|
||||
return;
|
||||
|
||||
ObjectNodeInstance::setPropertyVariant(name, value);
|
||||
|
Reference in New Issue
Block a user