Skip to content
Snippets Groups Projects
Commit d7ca7621 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlDesigner.StatesEditor: fixing BAUHAUS-521

parent e37b101d
No related branches found
No related tags found
No related merge requests found
...@@ -510,7 +510,7 @@ void StatesEditorView::clearModelStates() ...@@ -510,7 +510,7 @@ void StatesEditorView::clearModelStates()
// Remove all states // Remove all states
const int modelStateCount = m_modelStates.size(); 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_modelStates.removeAt(i);
m_editorModel->removeState(i); m_editorModel->removeState(i);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment