Skip to content

When clearing QPixmapCache, stop its flushing timer

No need for timer event to reduce cache size when it is already empty.

May also avoid the "Timers cannot be stopped from another thread" warning at exit, if the global cache object is then deleted by another thread.

Fixes: QTBUG-96101 Pick-to: 6.2 5.15 Change-Id: Id1aeecfbb43a25a887ebd5cc7242749a74290bb0 Reviewed-by: Qt CI Bot qt_ci_bot@qt-project.org Reviewed-by: Volker Hilsheimer volker.hilsheimer@qt.io (cherry picked from commit dc65267a)

Merge request reports