dabo Commit
Revision 4873
Date: 2008-12-18 11:48:23 -0800 (Thu, 18 Dec 2008)
Author: Ed
Trac: http://trac.dabodev.com/dabo/changeset/4873

Changed:
U   trunk/ide/ClassDesigner.py

Log:
Added graceful exit if the user cancels out of startup. Previously an error 
would be thrown and the app would abend.

Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2008-12-18 14:39:02 UTC (rev 4872)
+++ trunk/ide/ClassDesigner.py  2008-12-18 19:48:23 UTC (rev 4873)
@@ -182,6 +182,9 @@
 
                if not clsOK:
                        frm = self.onNewDesign(None)
+                       if not frm:
+                               # They canceled
+                               sys.exit(0)
                        # Use this to determine if an empty class should be 
released
                        frm._initialStateDict = frm.getDesignerDict()
                else:




_______________________________________________
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