Commit 3ac3bcfa authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.PropertyEditor: Crash fix

There is no guarantee that the selection is still valid, when
changeExpression() is called. The signal might be triggered by an
EditingFinished() signal that was emitted after the selection was changed.

Just ignoring the change is not the ideal solution, but there is not much
more we can do.

Task-number: QTCREATORBUG-11249
Change-Id: I770dade680b0b8a052efd910b636829d1037e3ad
Reviewed-by: default avatarRobert Loehning <>
parent bb0c02a0
......@@ -240,6 +240,9 @@ void PropertyEditorView::changeExpression(const QString &propertyName)
if (m_locked)
if (!m_selectedNode.isValid())
RewriterTransaction transaction = beginRewriterTransaction();
try {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment