[neon/mobile/plasma-mobile/Neon/release_jammy] debian/patches: patch from https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/518
Jonathan Riddell
null at kde.org
Wed Jun 26 18:39:54 BST 2024
Git commit 528e66d3a60911508a938e372d7d4f73bccbaec8 by Jonathan Riddell.
Committed on 26/06/2024 at 17:39.
Pushed by jriddell into branch 'Neon/release_jammy'.
patch from https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/518
A +16 -0 debian/patches/noconst.diff
A +1 -0 debian/patches/series
https://invent.kde.org/neon/mobile/plasma-mobile/-/commit/528e66d3a60911508a938e372d7d4f73bccbaec8
diff --git a/debian/patches/noconst.diff b/debian/patches/noconst.diff
new file mode 100644
index 0000000..310a83a
--- /dev/null
+++ b/debian/patches/noconst.diff
@@ -0,0 +1,16 @@
+diff --git a/envmanager/settings.cpp b/envmanager/settings.cpp
+index bd24a313a..337399aa3 100644
+--- a/envmanager/settings.cpp
++++ b/envmanager/settings.cpp
+@@ -127,8 +127,9 @@ void Settings::loadKeys(const QString &fileName, KSharedConfig::Ptr &config, con
+ // NOTE: this only saves a value if it hasn't already been saved
+ void Settings::saveConfigSetting(const QString &fileName, const QString &group, const QString &key, const QVariant value)
+ {
+- const auto savedGroup = KConfigGroup{m_mobileConfig, SAVED_CONFIG_GROUP};
+- const auto fileGroup = KConfigGroup{&savedGroup, fileName};
++ // These are not const because we are writing an entry
++ auto savedGroup = KConfigGroup{m_mobileConfig, SAVED_CONFIG_GROUP};
++ auto fileGroup = KConfigGroup{&savedGroup, fileName};
+ auto keyGroup = KConfigGroup{&fileGroup, group};
+
+ if (!keyGroup.hasKey(key)) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee95a1e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+noconst.diff
More information about the Neon-commits
mailing list