From 50affafcb35caf178b528b1cf22cdf4f0b427ea5 Mon Sep 17 00:00:00 2001
From: Ilya Kotov <iokotov@astralinux.ru>
Date: Sun, 12 Mar 2023 14:57:50 +0300
Subject: [PATCH] fixed default palette

---
 src/qt6ct-qtplugin/qt6ctplatformtheme.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp b/src/qt6ct-qtplugin/qt6ctplatformtheme.cpp
index d68e43f..b5c3e59 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
-- 
GitLab