diff options
-rw-r--r-- | applications/kube/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/kube/main.cpp b/applications/kube/main.cpp index c893e029..03a128c4 100644 --- a/applications/kube/main.cpp +++ b/applications/kube/main.cpp | |||
@@ -20,6 +20,11 @@ public: | |||
20 | 20 | ||
21 | QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) Q_DECL_OVERRIDE | 21 | QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) Q_DECL_OVERRIDE |
22 | { | 22 | { |
23 | //The platform theme plugin can overwrite our setting again once it gets loaded, | ||
24 | //so we check on every icon load request... | ||
25 | if (QIcon::themeName() != "kube") { | ||
26 | QIcon::setThemeName("kube"); | ||
27 | } | ||
23 | const auto icon = QIcon::fromTheme(id); | 28 | const auto icon = QIcon::fromTheme(id); |
24 | auto expectedSize = requestedSize; | 29 | auto expectedSize = requestedSize; |
25 | if (!icon.availableSizes().contains(requestedSize) && !icon.availableSizes().isEmpty()) { | 30 | if (!icon.availableSizes().contains(requestedSize) && !icon.availableSizes().isEmpty()) { |