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
......@@ -261,7 +261,15 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
&& QmlModelState(removedNode).isValid()) {
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);
Supports Markdown
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