Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kglobalacceld6 for openSUSE:Factory 
checked in at 2024-05-27 11:45:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kglobalacceld6 (Old)
 and      /work/SRC/openSUSE:Factory/.kglobalacceld6.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kglobalacceld6"

Mon May 27 11:45:39 2024 rev:5 rq:1176095 version:6.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/kglobalacceld6/kglobalacceld6.changes    
2024-04-18 22:12:06.896398281 +0200
+++ /work/SRC/openSUSE:Factory/.kglobalacceld6.new.24587/kglobalacceld6.changes 
2024-05-27 11:47:56.480389597 +0200
@@ -1,0 +2,10 @@
+Wed May 22 07:43:03 UTC 2024 - Fabian Vogt <fab...@ritter-vogt.de>
+
+- Update to 6.0.5:
+  * New bugfix release
+  * For more details see https://kde.org/announcements/plasma/6/6.0.5
+- Changes since 6.0.4:
+  * update version for new release
+  * Postpone processing KSycoca to the next event loop cycle
+
+-------------------------------------------------------------------

Old:
----
  kglobalacceld-6.0.4.tar.xz
  kglobalacceld-6.0.4.tar.xz.sig

New:
----
  kglobalacceld-6.0.5.tar.xz
  kglobalacceld-6.0.5.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kglobalacceld6.spec ++++++
--- /var/tmp/diff_new_pack.UiowRH/_old  2024-05-27 11:48:01.932589382 +0200
+++ /var/tmp/diff_new_pack.UiowRH/_new  2024-05-27 11:48:01.936589529 +0200
@@ -26,7 +26,7 @@
 # Latest ABI-stable Plasma (e.g. 6.0 in KF6, but 6.0.80 in KUF)
 %{!?_plasma6_version: %define _plasma6_version %(echo %{_plasma6_bugfix} | awk 
-F. '{print $1"."$2}')}
 Name:           kglobalacceld6
-Version:        6.0.4
+Version:        6.0.5
 Release:        0
 Summary:        Global keyboard shortcut daemon
 License:        LGPL-2.0-or-later

++++++ kglobalacceld-6.0.4.tar.xz -> kglobalacceld-6.0.5.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kglobalacceld-6.0.4/CMakeLists.txt 
new/kglobalacceld-6.0.5/CMakeLists.txt
--- old/kglobalacceld-6.0.4/CMakeLists.txt      2024-04-16 12:35:34.000000000 
+0200
+++ new/kglobalacceld-6.0.5/CMakeLists.txt      2024-05-21 18:48:24.000000000 
+0200
@@ -2,7 +2,7 @@
 
 project(kglobalacceld)
 
-set(PROJECT_VERSION "6.0.4")
+set(PROJECT_VERSION "6.0.5")
 set(PROJECT_VERSION_MAJOR 6)
 
 set(QT_MIN_VERSION "6.6.0")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kglobalacceld-6.0.4/src/globalshortcutsregistry.cpp 
new/kglobalacceld-6.0.5/src/globalshortcutsregistry.cpp
--- old/kglobalacceld-6.0.4/src/globalshortcutsregistry.cpp     2024-04-16 
12:35:34.000000000 +0200
+++ new/kglobalacceld-6.0.5/src/globalshortcutsregistry.cpp     2024-05-21 
18:48:24.000000000 +0200
@@ -260,7 +260,13 @@
         _manager->setEnabled(true);
     }
 
-    connect(KSycoca::self(), &KSycoca::databaseChanged, this, 
&GlobalShortcutsRegistry::refreshServices);
+    // ksycoca database can change while refreshServices() prunes orphan 
shortcuts. If that happens,
+    // call refreshServices() as a followup in the next event loop cycle.
+    connect(KSycoca::self(), &KSycoca::databaseChanged, this, 
&GlobalShortcutsRegistry::scheduleRefreshServices);
+
+    m_refreshServicesTimer.setSingleShot(true);
+    m_refreshServicesTimer.setInterval(0);
+    connect(&m_refreshServicesTimer, &QTimer::timeout, this, 
&GlobalShortcutsRegistry::refreshServices);
 }
 
 GlobalShortcutsRegistry::~GlobalShortcutsRegistry()
@@ -829,6 +835,11 @@
     _config.sync();
 }
 
+void GlobalShortcutsRegistry::scheduleRefreshServices()
+{
+    m_refreshServicesTimer.start();
+}
+
 void GlobalShortcutsRegistry::refreshServices()
 {
     // Remove shortcuts for no longer existing apps
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kglobalacceld-6.0.4/src/globalshortcutsregistry.h 
new/kglobalacceld-6.0.5/src/globalshortcutsregistry.h
--- old/kglobalacceld-6.0.4/src/globalshortcutsregistry.h       2024-04-16 
12:35:34.000000000 +0200
+++ new/kglobalacceld-6.0.5/src/globalshortcutsregistry.h       2024-05-21 
18:48:24.000000000 +0200
@@ -18,6 +18,7 @@
 #include <QHash>
 #include <QKeySequence>
 #include <QObject>
+#include <QTimer>
 
 #include "kglobalaccel_export.h"
 
@@ -145,6 +146,7 @@
     KServiceActionComponent *createServiceActionComponent(KService::Ptr 
service);
     void migrateConfig();
     void migrateKHotkeys();
+    void scheduleRefreshServices();
     void refreshServices();
     void detectAppsWithShortcuts();
 
@@ -177,6 +179,7 @@
 
     QDBusObjectPath _dbusPath;
     GlobalShortcut *m_lastShortcut = nullptr;
+    QTimer m_refreshServicesTimer;
 };
 
 #endif /* #ifndef GLOBALSHORTCUTSREGISTRY_H */

Reply via email to