Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix checking style name on Qt5
Freya Lupen3b45bf7cbe01
diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cppindex 84bc0912db..fb224b135f 100644--- a/libs/ui/KisMainWindow.cpp+++ b/libs/ui/KisMainWindow.cpp@@ -2452,7 +2452,7 @@ void KisMainWindow::slotUpdateWidgetStyle()// When switching to a style that uses system colors, reset the theme#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))- if (qApp->style()->name() == "macintosh") {+ if (qApp->style()->objectName() == "macintosh") {d->themeManager->setCurrentTheme("System");}#else