mailr13842 - /branches/gui_testing/gui/wizard.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 22, 2011 - 21:16:
Author: bugman
Date: Fri Jul 22 21:16:13 2011
New Revision: 13842

URL: http://svn.gna.org/viewcvs/relax?rev=13842&view=rev
Log:
Mac OS X bug fit - removed the Destroy() call after ShowModal() in the wizard.

The Destroy() method was actually being called twice, the first time either 
by the _ok() or the
_cancel() methods, and the second time directly after the ShowModal().  This 
is fatal on a Mac!


Modified:
    branches/gui_testing/gui/wizard.py

Modified: branches/gui_testing/gui/wizard.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/wizard.py?rev=13842&r1=13841&r2=13842&view=diff
==============================================================================
--- branches/gui_testing/gui/wizard.py (original)
+++ branches/gui_testing/gui/wizard.py Fri Jul 22 21:16:13 2011
@@ -1388,11 +1388,8 @@
 
         # Modal operation.
         if modal:
-            # Show the wizard.
+            # Show the wizard (it should be destroyed by the _cancel() or 
_ok() methods).
             self.ShowModal()
-
-            # Destroy the wizard.
-            self.Destroy()
 
             # Return the status.
             return self._status




Related Messages


Powered by MHonArc, Updated Fri Jul 22 22:20:02 2011