OSDN Git Service

QmlDesigner.StatesEditor: Fix crash for removing state
authorMarco Bubke <marco.bubke@nokia.com>
Wed, 12 Jan 2011 18:22:16 +0000 (19:22 +0100)
committerMarco Bubke <marco.bubke@nokia.com>
Wed, 12 Jan 2011 18:22:16 +0000 (19:22 +0100)
src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp

index 43bc291..8367b24 100644 (file)
@@ -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();
     }
 }