From caaa1a70a9498f14448b182dbe2fe1483ec2b7a1 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 4 Sep 2018 14:34:31 +0200 Subject: [PATCH] QmlDesigner: Crash Fix We somehow managed to raise a more general exception. There is no reason to not play safe. Change-Id: I44ff0d6c3e5181e1c067b1b5d6620cd6a8723d27 Reviewed-by: Tim Jenssen --- .../qmldesigner/components/stateseditor/stateseditorview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp index a0f5e8dbfd1..e7d930a82b1 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp @@ -274,7 +274,7 @@ void StatesEditorView::setWhenCondition(int internalNodeId, const QString &condi if (state.isValid()) state.modelNode().bindingProperty("when").setExpression(condition); - } catch (const RewritingException &e) { + } catch (const Exception &e) { e.showException(); } }