Skip to content
Snippets Groups Projects
Commit 2c87f1ee authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Update states editor icons when element is removed

Schedule a redraw of the states icons when an element is removed from
the model.

Task-number: BAUHAUS-460
Reviewed-by: Christiaan Janssen
parent 736963a4
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,15 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode) ...@@ -261,7 +261,15 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
&& QmlModelState(removedNode).isValid()) { && QmlModelState(removedNode).isValid()) {
removeModelState(removedNode); removeModelState(removedNode);
} }
QmlModelView::nodeAboutToBeRemoved(removedNode); QmlModelView::nodeAboutToBeRemoved(removedNode);
if (QmlModelState(removedNode).isValid()) {
startUpdateTimer(modelStateIndex(removedNode) + 1, 0);
} else { //a change to the base state update all
for (int i = 0; i < m_modelStates.count(); ++i)
startUpdateTimer(i, 0);
}
} }
......
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