File 0001-Fix-crash-when-closing-kmymoney-on-Windows.patch of Package mingw64-kconfigwidgets

diff -ur kconfigwidgets-5.103.0.orig/src/kcolorschemehelpers_p.h kconfigwidgets-5.103.0/src/kcolorschemehelpers_p.h
--- kconfigwidgets-5.103.0.orig/src/kcolorschemehelpers_p.h	2023-02-05 10:19:05.000000000 +0100
+++ kconfigwidgets-5.103.0/src/kcolorschemehelpers_p.h	2024-07-03 12:13:22.471235878 +0200
@@ -17,7 +17,14 @@
 static KSharedConfigPtr defaultConfig()
 {
     // cache the value we'll return, since usually it's going to be the same value
-    static thread_local KSharedConfigPtr config;
+#if defined(Q_OS_WIN) && defined(__GNUC__)
+    // Fix crash when closing kmymoney on Windows
+    // It's not clear at this time why this was crashing.
+    // BUG:440059
+    static KSharedConfigPtr config;
+#else
+     static thread_local KSharedConfigPtr config;
+#endif
     // Read from the application's color scheme file (as set by KColorSchemeManager).
     // If unset, this is equivalent to openConfig() and the system scheme is used.
     const auto colorSchemePath = qApp->property("KDE_COLOR_SCHEME_PATH").toString();
openSUSE Build Service is sponsored by