Fixed a problem exporting shortcuts.

Wed, 20 Jan 2010 18:36:34 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 20 Jan 2010 18:36:34 +0000
changeset 81
a40a255e56e4
parent 80
166d5df6337c
child 82
78fc26d3e43b

Fixed a problem exporting shortcuts.

Preferences/Shortcuts.py file | annotate | diff | comparison | revisions
--- 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