Author: bugman Date: Wed Sep 21 22:58:36 2011 New Revision: 14746 URL: http://svn.gna.org/viewcvs/relax?rev=14746&view=rev Log: Bug fix for the failure of loading a relax state. The relax data store GUI structure was being removed prior to loading the state, and then not being reinitialised if that state loading failed. Modified: 1.3/gui/relax_gui.py Modified: 1.3/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/relax_gui.py?rev=14746&r1=14745&r2=14746&view=diff ============================================================================== --- 1.3/gui/relax_gui.py (original) +++ 1.3/gui/relax_gui.py Wed Sep 21 22:58:36 2011 @@ -605,13 +605,17 @@ self.save_file = file_name # Load the relax state. - protected_exec(state.load_state, file_name, verbosity=0) - - # Reconstruct the analyses. - self.analysis.load_from_store() - - # Update the core of the GUI to match the new data store. - self.sync_ds(upload=False) + if protected_exec(state.load_state, file_name, verbosity=0): + # Reconstruct the analyses. + self.analysis.load_from_store() + + # Update the core of the GUI to match the new data store. + self.sync_ds(upload=False) + + # File loading failure. + else: + # Reinitialise the GUI data store structure. + self.init_data() # Reset the cursor, and thaw the GUI. finally: