dabo Commit
Revision 4567
Date: 2008-10-13 18:31:48 -0700 (Mon, 13 Oct 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4567
Changed:
U trunk/dabo/ui/uiwx/uiApp.py
Log:
On Mac only, I'd get a dead object exception after hitting the red x close box.
This fixes it.
Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2008-10-14 01:30:46 UTC (rev 4566)
+++ trunk/dabo/ui/uiwx/uiApp.py 2008-10-14 01:31:48 UTC (rev 4567)
@@ -616,8 +616,11 @@
k.cancel()
if k in keysToRevert:
k.AutoPersist =
True
- if dlgPref.Modal:
- dlgPref.release()
+ try:
+ if dlgPref.Modal:
+ dlgPref.release()
+ except dabo.ui.deadObjectException:
+ pass
else:
dabo.infoLog.write(_("Stub:
dApp.onEditPreferences()"))
_______________________________________________
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]