dabo Commit
Revision 6716
Date: 2011-07-10 10:33:43 -0700 (Sun, 10 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6716

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

Log:
Fixed AttributeError raised when no ActiveForm is defined.

Diff:
Modified: trunk/dabo/ui/uiwx/uiApp.py
===================================================================
--- trunk/dabo/ui/uiwx/uiApp.py 2011-07-10 16:55:10 UTC (rev 6715)
+++ trunk/dabo/ui/uiwx/uiApp.py 2011-07-10 17:33:43 UTC (rev 6716)
@@ -571,6 +571,8 @@
                """Display the object inspector window."""
                if context is None:
                        context = self.ActiveForm
+                       if not context:
+                               context = self.dApp.MainForm
                activeControl = context.ActiveControl
                if not self.inspectorWindow:
 #                      loc = os.path.dirname(dabo.ui.uiwx.__file__)



_______________________________________________
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