dabo Commit
Revision 4548
Date: 2008-10-05 08:15:37 -0700 (Sun, 05 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4548

Changed:
U   trunk/dabo/ui/uiwx/dMenuItem.py

Log:
Tracked down and fixed the problem that caused all those 'GTK-Critical' 
messages. 


Diff:
Modified: trunk/dabo/ui/uiwx/dMenuItem.py
===================================================================
--- trunk/dabo/ui/uiwx/dMenuItem.py     2008-10-04 15:55:23 UTC (rev 4547)
+++ trunk/dabo/ui/uiwx/dMenuItem.py     2008-10-05 15:15:37 UTC (rev 4548)
@@ -60,6 +60,8 @@
                """Combine the Caption and HotKey into the format needed by 
wxPython."""
                cap = self.Caption
                hk = self.HotKey
+               if not cap:
+                       return
                if hk:
                        cap = "%s\t%s" % (cap, hk)
                curr = self.GetText()




_______________________________________________
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]

Reply via email to