[graphics/krita] libs/ui: Fix Qt6 build

Freya Lupen <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a4d196efa7fc1ead25d5c560113d88a63569327b by Freya Lupen.
Committed on 26/07/2026 at 13:03.
Pushed by freyalupen into branch 'master'.

Fix Qt6 build

and switching to System theme when switching style to macOS.

M  +1    -1    libs/ui/KisMainWindow.cpp

https://invent.kde.org/graphics/krita/-/commit/a4d196efa7fc1ead25d5c560113d88a63569327b

diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index 0a86bdca4c8..bbf49728f3e 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -2562,7 +2562,7 @@ void KisMainWindow::slotUpdateWidgetStyle()
                 d->themeManager->setCurrentTheme("System");
             }
 #else
-            if (currentStyle || currentStyle == "windowsvista") {
+            if (currentStyle == "macos" || currentStyle == "windowsvista") {
                 d->themeManager->setCurrentTheme("System");
             }
 #endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.