Fix restarting timer from onTriggered handler.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 10 Jan 2012 00:28:11 +0000 (10:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jan 2012 08:33:32 +0000 (09:33 +0100)
commit521aa7f562a5f215de09e3f37168f6a6d0ce5543
treefeaa4b1cdd8dc799b876ff2218434b8ad0cfe7f6
parent21e6e0e6aa72ab6051eaadd5fbda29c795ca8c8e
Fix restarting timer from onTriggered handler.

Set the running property to false before calling the triggered handler
when a timer finishes so it does not appear to still be running and
can be restarted by setting the running property to true.

Task-number: QTBUG-22004
Change-Id: I840efa30f5b7ad7d0cda96803d4898be3f390705
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/util/qdeclarativetimer.cpp
tests/auto/qtquick2/qdeclarativetimer/tst_qdeclarativetimer.cpp