Author: bugman Date: Mon Aug 8 14:43:40 2011 New Revision: 14259 URL: http://svn.gna.org/viewcvs/relax?rev=14259&view=rev Log: The close_windows() method exists without doing anything if the windows are not opened. 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=14259&r1=14258&r2=14259&view=diff ============================================================================== --- branches/gui_testing/gui/relax_gui.py (original) +++ branches/gui_testing/gui/relax_gui.py Mon Aug 8 14:43:40 2011 @@ -257,6 +257,10 @@ if hasattr(self, 'pipe_editor') and self.pipe_editor.IsShown(): win_list.append('The data pipe editor') + # The windows are not open, so quit. + if not len(win_list): + return + # The text. text = "The following windows are currently open:\n\n" for win in win_list: