diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp index 870f9eb76f..014fc36f6d 100644 --- a/src/gui/image/qiconloader.cpp +++ b/src/gui/image/qiconloader.cpp @@ -408,9 +408,9 @@ QStringList QIconTheme::parents() const if (!fallback.isEmpty()) result.append(fallback); - // Ensure that all themes fall back to hicolor - if (!result.contains("hicolor"_L1)) - result.append("hicolor"_L1); + // Ensure that all themes fall back to hicolor as the last theme + result.removeAll("hicolor"_L1); + result.append("hicolor"_L1); return result; }