dabo Commit
Revision 6482
Date: 2011-02-28 10:54:37 -0800 (Mon, 28 Feb 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6482

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

Log:
Minor fix for the report progress screen after receiving an error report
that self.oldFocus isn't an object.


Diff:
Modified: trunk/dabo/ui/uiwx/dReportProgress.py
===================================================================
--- trunk/dabo/ui/uiwx/dReportProgress.py       2011-02-27 15:08:55 UTC (rev 
6481)
+++ trunk/dabo/ui/uiwx/dReportProgress.py       2011-02-28 18:54:37 UTC (rev 
6482)
@@ -38,7 +38,8 @@
 
        def hide(self):
                self.Visible = False
-               self.oldFocus.setFocus()  ## Let 'esc' register on the form 
instead of our cancel button
+               if self.oldFocus:
+                       self.oldFocus.setFocus()  ## Let 'esc' register on the 
form instead of our cancel button
                self.butCancelReportProgress.Enabled = False
                self.butCancelReportProgress.CancelButton = False
                if self.oldCancel:



_______________________________________________
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