- Revision
- 11318
- Author
- stearns
- Date
- 2006-08-03 13:57:59 -0700 (Thu, 03 Aug 2006)
Log Message
Apply my fix for accelerator-key-related error messages in debug-mode logs; I'm hoping this fixes bug 5670 (Unknown accel modifier 's ctrl' in mac logs) as well.
Modified Paths
Diff
Modified: trunk/chandler/parcels/osaf/framework/blocks/Block.py (11317 => 11318)
--- trunk/chandler/parcels/osaf/framework/blocks/Block.py 2006-08-03 01:20:29 UTC (rev 11317) +++ trunk/chandler/parcels/osaf/framework/blocks/Block.py 2006-08-03 20:57:59 UTC (rev 11318) @@ -999,9 +999,9 @@ if sender is not None: title = getattr(sender, 'title', None) if title is not None: - accel = getattr(sender, 'accel', None) - if accel is not None: - title += '\t' + accel + accel = getattr(sender, 'accel', u'') + if len(accel) > 0: + title += u'\t' + accel # this isn't a real wx argument, but is used later # to re-attach the accelerator after the client has # updated the 'Text' argument
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
