Preferences/Shortcuts.py

changeset 81
a40a255e56e4
parent 55
b5c84934de9c
child 97
c4086afea02b
diff -r 166d5df6337c -r a40a255e56e4 Preferences/Shortcuts.py
--- a/Preferences/Shortcuts.py	Mon Jan 18 18:54:11 2010 +0000
+++ b/Preferences/Shortcuts.py	Wed Jan 20 18:36:34 2010 +0000
@@ -119,10 +119,10 @@
     if act.objectName():
         prefClass.settings.setValue(
             "Shortcuts/{0}/{1}/Accel".format(category, act.objectName()), 
-            act.shortcut())
+            act.shortcut().toString())
         prefClass.settings.setValue(
             "Shortcuts/{0}/{1}/AltAccel".format(category, act.objectName()), 
-            act.alternateShortcut())
+            act.alternateShortcut().toString())
 
 def saveShortcuts(prefClass = Prefs):
     """
@@ -398,4 +398,4 @@
     
     if "HelpViewer" in shortcuts:
         __setAction(e5App().getObject("DummyHelpViewer").getActions(), 
-            shortcuts["HelpViewer"])
\ No newline at end of file
+            shortcuts["HelpViewer"])

eric ide

mercurial