[neon/kde/plasma-workspace/Neon/unstable] debian/patches: add patch from revert of 3d14e60814131e59673baf3a01df0e10a70e958e which causes crash on first run for a new user

Jonathan Esk-Riddell null at kde.org
Wed Feb 8 16:51:40 GMT 2023


Git commit 4f52a00d31a527f0316bf3fb22d04b9811a1aaac by Jonathan Esk-Riddell.
Committed on 08/02/2023 at 16:51.
Pushed by jriddell into branch 'Neon/unstable'.

add patch from revert of 3d14e60814131e59673baf3a01df0e10a70e958e which causes crash on first run for a new user

A  +18   -0    debian/patches/neon_fix-first-run.diff
M  +1    -0    debian/patches/series

https://invent.kde.org/neon/kde/plasma-workspace/commit/4f52a00d31a527f0316bf3fb22d04b9811a1aaac

diff --git a/debian/patches/neon_fix-first-run.diff b/debian/patches/neon_fix-first-run.diff
new file mode 100644
index 0000000..f97aae3
--- /dev/null
+++ b/debian/patches/neon_fix-first-run.diff
@@ -0,0 +1,18 @@
+diff --git a/kcms/lookandfeel/lookandfeelmanager.cpp b/kcms/lookandfeel/lookandfeelmanager.cpp
+index 9c36a0602..3627c6ff3 100644
+--- a/kcms/lookandfeel/lookandfeelmanager.cpp
++++ b/kcms/lookandfeel/lookandfeelmanager.cpp
+@@ -229,13 +229,6 @@ void LookAndFeelManager::setWidgetStyle(const QString &style)
+         return;
+     }
+ 
+-    // Some global themes use styles that may not be installed.
+-    // Test if style can be installed before updating the config.
+-    std::unique_ptr<QStyle> testStyle(QStyleFactory::create(style));
+-    if (!testStyle) {
+-        return;
+-    }
+-
+     writeNewDefaults(QStringLiteral("kdeglobals"), QStringLiteral("KDE"), QStringLiteral("widgetStyle"), style, KConfig::Notify);
+     Q_EMIT styleChanged(style);
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 03db5ec..e21d3ee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 disable_incompatible_tests
+neon_fix-first-run.diff


More information about the Neon-commits mailing list