dabo Commit
Revision 5306
Date: 2009-08-02 07:45:57 -0700 (Sun, 02 Aug 2009)
Author: Johnf
Trac: http://trac.dabodev.com/changeset/5306
Changed:
U trunk/dabo/ui/dialogs/PreferenceDialog.py
Log:
A menu item is not required to have a hotkey. Placed the setting in a try.
Diff:
Modified: trunk/dabo/ui/dialogs/PreferenceDialog.py
===================================================================
--- trunk/dabo/ui/dialogs/PreferenceDialog.py 2009-07-30 03:47:02 UTC (rev
5305)
+++ trunk/dabo/ui/dialogs/PreferenceDialog.py 2009-08-02 14:45:57 UTC (rev
5306)
@@ -182,8 +182,11 @@
if itm.Children:
self._recurseMenu(itm, kidnode, subpref)
else:
- kidnode.hotkey = itm.HotKey
- self._hotKeyMap[itm.HotKey] = itm
+ try:
+ kidnode.hotkey = itm.HotKey
+ self._hotKeyMap[itm.HotKey] = itm
+ except AttributeError:
+ pass
kidnode.Object = itm
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]