diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp index 7eb4dcd97e9..876c3e0f86b 100644 --- a/src/gui/image/qiconloader.cpp +++ b/src/gui/image/qiconloader.cpp @@ -135,9 +135,8 @@ void QIconLoader::invalidateKey() { // Invalidating the key here will result in QThemeIconEngine // recreating the actual engine the next time the icon is used. + // We don't need to clear the QIcon cache itself. m_themeKey++; - // Since the key has changed, we need to clear the cache as well. - QIconPrivate::clearIconCache(); } QString QIconLoader::themeName() const