Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41377

Regression: postDelayedEvent returns 0 as first

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: Core: State Machine
    • Labels:
      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.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            marcusl Marcus Lindblom Sonestedt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes