diff --git a/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp b/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp index d68e43fedc94e535e13da1e14e56ec3d055339f5..b5c3e59ebec8316b76db979315c61cff37cc7ed9 100644 --- a/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp +++ b/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp @@ -94,7 +94,8 @@ QPlatformDialogHelper *Qt6CTPlatformTheme::createPlatformDialogHelper(DialogType const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette type) const { - return (m_usePalette && m_palette) ? m_palette : QGenericUnixTheme::palette(type); + Q_UNUSED(type); + return (m_usePalette && m_palette) ? m_palette : nullptr; } const QFont *Qt6CTPlatformTheme::font(QPlatformTheme::Font type) const