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

QmlDesigner: Fix crash when opening a .qml file with states

This fixes an assert in QGraphicsScene because of
overlapping deferred calls of _q_processDirtyItems & _q_emitUpdated.
Both used to be queued in the same event loop:

 _q_emitUpdated call queued with "calledEmitUpdated=true"
 _q_processDirtyItems call queued
-> Event loop runs
 _q_emitUpdated runs, setting "calledEmitUpdated=false"
 _q_processDirtyItems runs, asserting because of !calledEmitUpdated

This fix forces the event loop to run between the queueing of
_q_emitUpdated & _q_processDirtyItems, effectively separating
both calls.

Task-number: BAUHAUS-459
Reviewed-by: Christiaan Janssen
parent 651ff4b1
No related branches found
No related tags found
Loading
Loading
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