Author: bugman Date: Wed Jun 15 19:04:28 2011 New Revision: 13058 URL: http://svn.gna.org/viewcvs/relax?rev=13058&view=rev Log: If all analyses are deleted, then the initial GUI state is set and the start screen remade. Modified: branches/gui_testing/gui/relax_gui.py Modified: branches/gui_testing/gui/relax_gui.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/relax_gui.py?rev=13058&r1=13057&r2=13058&view=diff ============================================================================== --- branches/gui_testing/gui/relax_gui.py (original) +++ branches/gui_testing/gui/relax_gui.py Wed Jun 15 19:04:28 2011 @@ -265,6 +265,14 @@ # Delete the tab object. self.analyses.pop(index) + # No more analyses, so in the initial state. + if len(ds.relax_gui.analyses) == 0: + # Reset the flag. + self.init_state = True + + # Recreate the start screen. + self.add_start_screen() + def exit_gui(self, event=None): """Catch the main window closure and perform the exit procedure.