mailr14259 - /branches/gui_testing/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 August 08, 2011 - 14:43:
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:




Related Messages


Powered by MHonArc, Updated Mon Aug 08 15:00:03 2011