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

Regression: postDelayedEvent returns 0 as first

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.0
    • Core: State Machine
    • 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

            thiago Thiago Macieira
            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