remove this call that is probably useless and crashing tests
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 21 Nov 2024 09:37:50 +0000 (10:37 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 21 Nov 2024 11:32:10 +0000 (12:32 +0100)
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 <matthieu.gallien@nextcloud.com>
src/libsync/theme.cpp

index 3c65e31bbcf8df223b1e9c4b82b2c7868d0b27cc..cb672c71750dd5a3106cd207cb2f199768af6b39 100644 (file)
@@ -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));