Commit 8f828fc9 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Add assert



Change-Id: Ic7cb2dd1e6d1bfb7c21722cd42ab6443b9ee5fc3
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 5162596f
...@@ -65,6 +65,7 @@ int StatesEditorWidget::currentStateInternalId() const ...@@ -65,6 +65,7 @@ int StatesEditorWidget::currentStateInternalId() const
void StatesEditorWidget::setCurrentStateInternalId(int internalId) void StatesEditorWidget::setCurrentStateInternalId(int internalId)
{ {
Q_ASSERT(rootObject());
rootObject()->setProperty("currentStateInternalId", internalId); rootObject()->setProperty("currentStateInternalId", internalId);
} }
......
Markdown is supported
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