Preferences/ShortcutsDialog.py

branch
5_1_x
changeset 1523
e38f749a6f28
parent 1510
e75ecf2bd9dd
--- a/Preferences/ShortcutsDialog.py	Fri Dec 30 15:21:21 2011 +0100
+++ b/Preferences/ShortcutsDialog.py	Sun Jan 01 17:16:40 2012 +0100
@@ -356,7 +356,7 @@
             for act in actions:
                 if txt == act.objectName():
                     act.setShortcut(QKeySequence(itm.text(1)))
-                    act.setAlternateShortcut(QKeySequence(itm.text(2)))
+                    act.setAlternateShortcut(QKeySequence(itm.text(2)), removeEmpty=True)
                     break
         
     def on_buttonBox_accepted(self):
@@ -453,4 +453,4 @@
         @param checked state of the shortcuts radio button (boolean)
         """
         if checked:
-            self.on_searchEdit_textChanged(self.searchEdit.text())
\ No newline at end of file
+            self.on_searchEdit_textChanged(self.searchEdit.text())

eric ide

mercurial