From 4ffc576e6ffbe5334023e10881ceaaa6a71b73e0 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Tue, 23 Jan 2024 09:06:54 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkgui Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: https://github.com/linuxdeepin/dtkgui/pull/221 --- src/util/dicontheme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/dicontheme.cpp b/src/util/dicontheme.cpp index b78298c..7e96ab4 100644 --- a/src/util/dicontheme.cpp +++ b/src/util/dicontheme.cpp @@ -176,7 +176,8 @@ void DIconTheme::Cached::clear() QIcon DIconTheme::Cached::findQIcon(const QString &iconName, Options options, const QIcon &fallback) { - const QString cacheKey = iconName + QChar('/') + QString::number(static_cast(options)); + const QString themeName = QIcon::themeName(); + const QString cacheKey = themeName + QChar('/') + iconName + QChar('/') + QString::number(static_cast(options)); if (data->cache.contains(cacheKey)) { auto cacheIcon = data->cache.object(cacheKey); if (cacheIcon->isNull())