Package: release.debian.org
Severity: normal
X-Debbugs-Cc: kglobalacc...@packages.debian.org, Debian Qt/KDE Maintainers 
<debian-qt-kde@lists.debian.org>
Control: affects -1 + src:kglobalacceld
User: release.debian....@packages.debian.org
Usertags: unblock

Dear Release Team,

please unblock package kglobalacceld.

[ Reason ]
It contains the following changes:
* New upstream release (6.3.6).
  - Fix losing shortcuts when updating the system.

[ Tests ]
- Upstream build-time test suite passes.

[ Risks ]
New upstream point release with a single fix, the risk is really low.

[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in testing


Thanks !


unblock kglobalacceld/6.3.6-1
diff -Nru kglobalacceld-6.3.4/CMakeLists.txt kglobalacceld-6.3.6/CMakeLists.txt
--- kglobalacceld-6.3.4/CMakeLists.txt  2025-04-02 05:36:08.000000000 +0200
+++ kglobalacceld-6.3.6/CMakeLists.txt  2025-07-08 13:44:01.000000000 +0200
@@ -2,7 +2,7 @@
 
 project(kglobalacceld)
 
-set(PROJECT_VERSION "6.3.4")
+set(PROJECT_VERSION "6.3.6")
 set(PROJECT_VERSION_MAJOR 6)
 
 set(QT_MIN_VERSION "6.7.0")
diff -Nru kglobalacceld-6.3.4/debian/changelog 
kglobalacceld-6.3.6/debian/changelog
--- kglobalacceld-6.3.4/debian/changelog        2025-04-03 01:00:22.000000000 
+0200
+++ kglobalacceld-6.3.6/debian/changelog        2025-07-14 23:55:31.000000000 
+0200
@@ -1,3 +1,11 @@
+kglobalacceld (6.3.6-1) unstable; urgency=medium
+
+  [ Aurélien COUDERC ]
+  * New upstream release (6.3.6).
+    - Fix losing shortcuts when updating the system.
+
+ -- Aurélien COUDERC <couc...@debian.org>  Mon, 14 Jul 2025 23:55:31 +0200
+
 kglobalacceld (6.3.4-1) unstable; urgency=medium
 
   [ Patrick Franz ]
diff -Nru kglobalacceld-6.3.4/src/globalshortcutsregistry.cpp 
kglobalacceld-6.3.6/src/globalshortcutsregistry.cpp
--- kglobalacceld-6.3.4/src/globalshortcutsregistry.cpp 2025-04-02 
05:36:08.000000000 +0200
+++ kglobalacceld-6.3.6/src/globalshortcutsregistry.cpp 2025-07-08 
13:44:01.000000000 +0200
@@ -787,9 +787,30 @@
             continue;
         }
 
-        auto *actionComp = createServiceActionComponent(service);
-        actionComp->activateGlobalShortcutContext(QStringLiteral("default"));
-        actionComp->loadFromService();
+        auto *component = createServiceActionComponent(service);
+        if (KConfigGroup configGroup = 
_config.group(QStringLiteral("services")).group(component->uniqueName()); 
configGroup.exists()) {
+            // Now load the contexts
+            const auto groupList = configGroup.groupList();
+            for (const QString &context : groupList) {
+                // Skip the friendly name group, this was previously used 
instead of _k_friendly_name
+                if (context == QLatin1String("Friendly Name")) {
+                    continue;
+                }
+
+                KConfigGroup contextGroup(&configGroup, context);
+                QString contextFriendlyName = 
contextGroup.readEntry("_k_friendly_name");
+                component->createGlobalShortcutContext(context, 
contextFriendlyName);
+                component->activateGlobalShortcutContext(context);
+                component->loadSettings(contextGroup);
+            }
+
+            // Load the default context
+            
component->activateGlobalShortcutContext(QStringLiteral("default"));
+            component->loadSettings(configGroup);
+        } else {
+            
component->activateGlobalShortcutContext(QStringLiteral("default"));
+            component->loadFromService();
+        }
     }
 }
 

Reply via email to