From e4cd55130a46680dff5cd1d51a91830df596628b Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 21 Nov 2024 10:37:50 +0100 Subject: [PATCH] remove this call that is probably useless and crashing tests we initialize all colors in the palette, so this init methos is most probably not doing anything useful crashes when doing in automated tests Signed-off-by: Matthieu Gallien --- src/libsync/theme.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libsync/theme.cpp b/src/libsync/theme.cpp index 3c65e31bbcf8d..cb672c71750dd 100644 --- a/src/libsync/theme.cpp +++ b/src/libsync/theme.cpp @@ -367,8 +367,6 @@ Theme::Theme() #if defined(Q_OS_WIN) // Windows does not provide a dark theme for Win32 apps so let's come up with a palette // Credit to https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle - reserveDarkPalette = qApp->palette(); - reserveDarkPalette.setColor(QPalette::WindowText, Qt::white); reserveDarkPalette.setColor(QPalette::Button, QColor(127, 127, 127)); reserveDarkPalette.setColor(QPalette::Light, QColor(20, 20, 20));