diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp index 01bc5b397053f71026667b32a96485b634883a76..e5601957b30d7ece5e752eea4261740e2c9c0815 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp @@ -419,6 +419,8 @@ void PropertyEditor::changeExpression(const QString &name) if (m_locked) return; + RewriterTransaction transaction = beginRewriterTransaction(); + QString underscoreName(name); underscoreName.replace(QLatin1Char('.'), QLatin1Char('_'));