From b8b093b20331c38b890ddf945b5d9ce123cbf9c7 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 23 Jul 2010 11:31:33 +1000 Subject: Fixes undeleted timers (and endless warning from the event loop about invalid timers). Authored-by: Daniel Molkentin Reviewed-by: Marco Bubke --- src/declarative/util/qdeclarativepixmapcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/util/qdeclarativepixmapcache.cpp b/src/declarative/util/qdeclarativepixmapcache.cpp index 31813a6..a83cac8 100644 --- a/src/declarative/util/qdeclarativepixmapcache.cpp +++ b/src/declarative/util/qdeclarativepixmapcache.cpp @@ -614,7 +614,7 @@ void QDeclarativePixmapStore::unreferencePixmap(QDeclarativePixmapData *data) m_unreferencedCost += data->cost(); if (m_timerId == -1) - startTimer(CACHE_EXPIRE_TIME * 1000); + m_timerId = startTimer(CACHE_EXPIRE_TIME * 1000); } void QDeclarativePixmapStore::referencePixmap(QDeclarativePixmapData *data) -- cgit v0.12