From 7df591c05da00d8c86d48a705a4056162cd1b086 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 12 Jan 2011 19:22:16 +0100 Subject: [PATCH] QmlDesigner.StatesEditor: Fix crash for removing state --- src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index 43bc291fc2..8367b242d0 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -163,7 +163,7 @@ void StatesEditorModel::removeState(int stateIndex) endRemoveRows(); - emit dataChanged(index(updateIndex, 0), index(updateIndex, 0)); + emit dataChanged(createIndex(updateIndex, 0), createIndex(updateIndex, 0)); emit countChanged(); } } -- 2.11.0