mailr16456 - /branches/uf_redesign/gui/uf_objects.py


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

Header


Content

Posted by edward on May 25, 2012 - 16:06:
Author: bugman
Date: Fri May 25 16:06:30 2012
New Revision: 16456

URL: http://svn.gna.org/viewcvs/relax?rev=16456&view=rev
Log:
Fix for the recycling of user function wizards for when a wizard fails.

In certain cases (relax bugs), the creation of the user function wizard will 
fail half way through.
The next time the user function is called, the half made page will be called 
and an error will
occur.  This occurs in often in the test suite, resulting in many normally 
passing tests failing
after an earlier test fails.


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16456&r1=16455&r2=16456&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Fri May 25 16:06:30 2012
@@ -165,7 +165,7 @@
         """
 
         # Create a new wizard if needed (checking that the parent of an old 
wizard is not the same).
-        if self.wizard == None or (wx_parent != None and wx_parent != 
self.wizard.GetParent()):
+        if self.wizard == None or (wx_parent != None and wx_parent != 
self.wizard.GetParent()) or self.wizard._pages[0] == None:
             self.create_wizard(wx_parent)
 
         # Update all of the user function argument choices (ComboBoxes) to 
be current.




Related Messages


Powered by MHonArc, Updated Fri May 25 18:20:02 2012