winrt: don't return invalidated timers in QEventDispatcherWinRT::registeredTimers
Change-Id: I0dbad7a78080cd8c18893fea8294cf540a5e9e5e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
This commit is contained in:
parent
bf24838c33
commit
756d451a15
@ -373,7 +373,7 @@ QList<QAbstractEventDispatcher::TimerInfo> QEventDispatcherWinRT::registeredTime
|
||||
Q_D(const QEventDispatcherWinRT);
|
||||
QList<TimerInfo> timerInfos;
|
||||
foreach (const WinRTTimerInfo &info, d->timerInfos) {
|
||||
if (info.object == object)
|
||||
if (info.object == object && info.timerId != INVALID_TIMER_ID)
|
||||
timerInfos.append(info);
|
||||
}
|
||||
return timerInfos;
|
||||
|
Loading…
Reference in New Issue
Block a user