mailr18402 - /trunk/gui/relax_gui.py


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

Header


Content

Posted by edward on February 04, 2013 - 17:59:
Author: bugman
Date: Mon Feb  4 17:59:01 2013
New Revision: 18402

URL: http://svn.gna.org/viewcvs/relax?rev=18402&view=rev
Log:
Fix for the failed loading of states in the GUI.

This problem was caught by the State.test_bug_20480 GUI test.  If the loading 
of a state file fails,
sometimes the relax data store can contain partial information from that 
file.  Now if the loading
fails in the GUI, relax is reset.


Modified:
    trunk/gui/relax_gui.py

Modified: trunk/gui/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/relax_gui.py?rev=18402&r1=18401&r2=18402&view=diff
==============================================================================
--- trunk/gui/relax_gui.py (original)
+++ trunk/gui/relax_gui.py Mon Feb  4 17:59:01 2013
@@ -846,6 +846,9 @@
 
             # File loading failure.
             else:
+                # Reset relax to clear any partially loaded data.
+                reset()
+
                 # Reinitialise the GUI data store structure.
                 self.init_data()
 




Related Messages


Powered by MHonArc, Updated Mon Feb 04 18:00:01 2013