dabo Commit
Revision 6779
Date: 2011-08-13 02:59:59 -0700 (Sat, 13 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6779

Changed:
U   trunk/dabo/ui/dialogs/htmlAbout.py

Log:
Fix for onClose event infinite loop issue.

Diff:
Modified: trunk/dabo/ui/dialogs/htmlAbout.py
===================================================================
--- trunk/dabo/ui/dialogs/htmlAbout.py  2011-08-11 15:26:03 UTC (rev 6778)
+++ trunk/dabo/ui/dialogs/htmlAbout.py  2011-08-13 09:59:59 UTC (rev 6779)
@@ -35,7 +35,7 @@
                btnCopy = dabo.ui.dButton(pnlBack, Caption=_("Copy Info"),
                                OnHit=self.onCopyInfo)
                btnClose = dabo.ui.dButton(pnlBack, Caption=_("OK"),
-                               OnHit=self.onClose)
+                               OnHit=self.onClear)
                hsz = dabo.ui.dSizer("H")
                hsz.append(btnCopy)
                hsz.appendSpacer(20)
@@ -46,15 +46,6 @@
                self.htmlBox.Source = self.writeHtmlPage()
 
 
-       def onClose(self, evt):
-               if self.Modal:
-                       self.EndModal(0)
-               if self.Parent is None:
-                       # Since this is a dialog, we need to explicitly remove
-                       # it or the app will hang.
-                       self.close(True)
-
-
        def writeHtmlPage(self):
                appinfo = dabo.ui.getSystemInfo("html")
                docstring = self.getAppSpecificString()



_______________________________________________
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