diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-07-23 01:31:33 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-07-23 01:31:33 (GMT) |
commit | b8b093b20331c38b890ddf945b5d9ce123cbf9c7 (patch) | |
tree | fd11ee33354746c17ddd78cd260165f2ed72e2dd | |
parent | 18c3446a964791726c4e06f86344d5db0289b554 (diff) | |
download | Qt-b8b093b20331c38b890ddf945b5d9ce123cbf9c7.zip Qt-b8b093b20331c38b890ddf945b5d9ce123cbf9c7.tar.gz Qt-b8b093b20331c38b890ddf945b5d9ce123cbf9c7.tar.bz2 |
Fixes undeleted timers (and endless warning from the event loop about
invalid timers).
Authored-by: Daniel Molkentin
Reviewed-by: Marco Bubke
-rw-r--r-- | src/declarative/util/qdeclarativepixmapcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |