dabo Commit
Revision 4543
Date: 2008-10-03 05:42:24 -0700 (Fri, 03 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4543

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

Log:
Found another source of dead object errors.


Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2008-10-03 11:51:06 UTC (rev 4542)
+++ trunk/dabo/ui/uiwx/uiApp.py 2008-10-03 12:42:24 UTC (rev 4543)
@@ -433,8 +433,9 @@
                                        frms.remove(frm)
                        # Now we can work with the rest
                        orphans = [frm for frm in frms
-                                       if frm.Parent is not app.MainForm
-                                       and frm is not app.MainForm]
+                                       if frm
+                                       and (frm.Parent is not app.MainForm)
+                                       and (frm is not app.MainForm)]
                        for orphan in orphans:
                                if orphan:
                                        orphan.close(force=True)




_______________________________________________
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