Commit d7ca7621 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.StatesEditor: fixing BAUHAUS-521

parent e37b101d
......@@ -510,7 +510,7 @@ void StatesEditorView::clearModelStates()
// Remove all states
const int modelStateCount = m_modelStates.size();
for (int i = 0; i < modelStateCount; ++i) {
for (int i=modelStateCount-1; i>=0; --i) {
m_modelStates.removeAt(i);
m_editorModel->removeState(i);
}
......
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