Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.0.0
-
None
Description
QStateMachine::postDelayedEvent() seems to have used timer id earlier, which far from zero. The new code (which is thread-safe) always returns 0 as the id when there are no delayed events.
We used 0 as a "no delayed event" value. (It should really have been -1, but it seems as zero is used by others too, when I googled for help.)
Most importantly: this caused a regression upgrading from Qt 4.6 to 5.3 (yes. huge step. sorry about that..)
Just starting at 1 fixes the issue.