dabo Commit
Revision 5774
Date: 2010-04-04 06:49:19 -0700 (Sun, 04 Apr 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5774
Changed:
U trunk/ide/ClassDesignerEditor.py
Log:
Ran into a case where the modified line would crash due to a dead object error.
This change now handles dead object situations as well as when nothing is
selected.
Diff:
Modified: trunk/ide/ClassDesignerEditor.py
===================================================================
--- trunk/ide/ClassDesignerEditor.py 2010-03-30 20:49:14 UTC (rev 5773)
+++ trunk/ide/ClassDesignerEditor.py 2010-04-04 13:49:19 UTC (rev 5774)
@@ -350,7 +350,7 @@
def setEditorCaption(self):
obj = self.ddObject.KeyValue
- if obj is None:
+ if not obj:
nm = _("No object")
else:
nm = obj.Name
_______________________________________________
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]