Fixed an issue causing deleted alternate keyboard shortcuts not being reloaded correctly.

Thu, 19 Jun 2014 10:00:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 19 Jun 2014 10:00:53 +0200
changeset 3642
1a6f8d9b63a5
parent 3640
2bf828881e86
child 3644
a2c88b9b1d16

Fixed an issue causing deleted alternate keyboard shortcuts not being reloaded correctly.

Preferences/Shortcuts.py file | annotate | diff | comparison | revisions
QScintilla/MiniEditor.py file | annotate | diff | comparison | revisions
diff -r 2bf828881e86 -r 1a6f8d9b63a5 Preferences/Shortcuts.py
--- a/Preferences/Shortcuts.py	Tue Jun 17 21:09:24 2014 +0200
+++ b/Preferences/Shortcuts.py	Thu Jun 19 10:00:53 2014 +0200
@@ -34,7 +34,7 @@
         accel = prefClass.settings.value(
             "Shortcuts/{0}/{1}/AltAccel".format(category, act.objectName()))
         if accel is not None:
-            act.setAlternateShortcut(QKeySequence(accel))
+            act.setAlternateShortcut(QKeySequence(accel), removeEmpty=True)
 
 
 def readShortcuts(prefClass=Prefs, helpViewer=None, pluginName=None):
@@ -255,7 +255,8 @@
             try:
                 accel, altAccel = sdict[act.objectName()]
                 act.setShortcut(QKeySequence(accel))
-                act.setAlternateShortcut(QKeySequence(altAccel))
+                act.setAlternateShortcut(QKeySequence(altAccel),
+                                         removeEmpty=True)
             except KeyError:
                 pass
 
diff -r 2bf828881e86 -r 1a6f8d9b63a5 QScintilla/MiniEditor.py
--- a/QScintilla/MiniEditor.py	Tue Jun 17 21:09:24 2014 +0200
+++ b/QScintilla/MiniEditor.py	Thu Jun 19 10:00:53 2014 +0200
@@ -333,7 +333,7 @@
                 "Shortcuts/{0}/{1}/AltAccel".format(
                     category, act.objectName()))
             if accel is not None:
-                act.setAlternateShortcut(QKeySequence(accel))
+                act.setAlternateShortcut(QKeySequence(accel), removeEmpty=True)
     
     def __createActions(self):
         """

eric ide

mercurial