[SCM] kconfig packaging branch, master, updated. debian/5.37.0-2-99-ga0d64c3

Maximiliano Curia maxy at moszumanska.debian.org
Tue Jan 2 18:32:43 UTC 2018


Gitweb-URL: http://git.debian.org/?p=pkg-kde/frameworks/kconfig.git;a=commitdiff;h=c29bf89

The following commit has been merged in the master branch:
commit c29bf89823aa4acfac83481cbb7d0279538c14db
Author: Jonathan Riddell <jr at jriddell.org>
Date:   Thu Jun 29 14:21:41 2017 +0100

    remove patches in archive
---
 ...ortcut-list-on-read-write-from-kdeglobals.patch | 59 ----------------------
 debian/patches/series                              |  1 -
 2 files changed, 60 deletions(-)

diff --git a/debian/patches/Sanitize-shortcut-list-on-read-write-from-kdeglobals.patch b/debian/patches/Sanitize-shortcut-list-on-read-write-from-kdeglobals.patch
deleted file mode 100644
index 8fee6ae..0000000
--- a/debian/patches/Sanitize-shortcut-list-on-read-write-from-kdeglobals.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From: Albert Astals Cid <aacid at kde.org>
-Date: Mon, 6 Mar 2017 22:57:39 +0100
-Subject: Sanitize shortcut list on read/write from kdeglobals
-
-For some reason some people have kdeglobals entries like
-   Close=Ctrl+W; Ctrl+Esc; Ctrl+W; Ctrl+Esc;
-having the same shortcut more than once in the shortcut declaration is clearly bogus so fix it
-
-BUGS: 375555
-REVIEW: 129987
----
- src/gui/kstandardshortcut.cpp | 20 ++++++++++++++++++++
- 1 file changed, 20 insertions(+)
-
-diff --git a/src/gui/kstandardshortcut.cpp b/src/gui/kstandardshortcut.cpp
-index 92eb091..dd6a6db 100644
---- a/src/gui/kstandardshortcut.cpp
-+++ b/src/gui/kstandardshortcut.cpp
-@@ -187,6 +187,24 @@ static KStandardShortcutInfo *guardedStandardShortcutInfo(StandardShortcut id)
-     }
- }
- 
-+
-+// Sanitize the list for duplicates. For some reason some
-+// people have kdeglobals entries like
-+//   Close=Ctrl+W; Ctrl+Esc; Ctrl+W; Ctrl+Esc;
-+// having the same shortcut more than once in the shortcut
-+// declaration is clearly bogus so fix it
-+static void sanitizeShortcutList(QList<QKeySequence> *list)
-+{
-+    for (int i = 0; i < list->size(); ++i) {
-+        const QKeySequence &ks = list->at(i);
-+        int other = list->indexOf(ks, i + 1);
-+        while (other != -1) {
-+            list->removeAt(other);
-+            other = list->indexOf(ks, other);
-+        }
-+    }
-+}
-+
- /** Initialize the accelerator @p id by checking if it is overridden
-     in the configuration file (and if it isn't, use the default).
-     On X11, if QApplication was initialized with GUI disabled,
-@@ -209,6 +227,7 @@ static void initialize(StandardShortcut id)
-         QString s = cg.readEntry(info->name);
-         if (s != QLatin1String("none")) {
-             info->cut = QKeySequence::listFromString(s);
-+            sanitizeShortcutList(&info->cut);
-         } else {
-             info->cut = QList<QKeySequence>();
-         }
-@@ -244,6 +263,7 @@ void saveShortcut(StandardShortcut id, const QList<QKeySequence> &newShortcut)
-     }
- 
-     // Write the changed shortcut to kdeglobals
-+    sanitizeShortcutList(&info->cut);
-     cg.writeEntry(info->name, QKeySequence::listToString(info->cut), KConfig::Global | KConfig::Persistent);
- }
- 
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index baf2fbf..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-Sanitize-shortcut-list-on-read-write-from-kdeglobals.patch

-- 
kconfig packaging



More information about the pkg-kde-commits mailing list