mailr25185 - /trunk/gui/analyses/__init__.py


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

Header


Content

Posted by edward on August 21, 2014 - 18:33:
Author: bugman
Date: Thu Aug 21 18:33:05 2014
New Revision: 25185

URL: http://svn.gna.org/viewcvs/relax?rev=25185&view=rev
Log:
Fix for bug #22501 (https://gna.org/bugs/?22501), "Close all analyses" raises 
error in the GUI.

The problem was general for all analysis types.  This used to work, but as it 
was not tested in the
test suite, a regression occurred.


Modified:
    trunk/gui/analyses/__init__.py

Modified: trunk/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/__init__.py?rev=25185&r1=25184&r2=25185&view=diff
==============================================================================
--- trunk/gui/analyses/__init__.py      (original)
+++ trunk/gui/analyses/__init__.py      Thu Aug 21 18:33:05 2014
@@ -129,6 +129,8 @@
         # No current page.
         if self._current == None:
             return
+        if len(ds.relax_gui.analyses) == 0:
+            return
 
         # Return the name.
         return ds.relax_gui.analyses[self._current]
@@ -144,6 +146,8 @@
         # No current page.
         if self._current == None:
             return
+        if len(ds.relax_gui.analyses) == 0:
+            return
 
         # Return the name.
         return ds.relax_gui.analyses[self._current].analysis_name
@@ -158,6 +162,8 @@
 
         # No current page.
         if self._current == None:
+            return
+        if len(ds.relax_gui.analyses) == 0:
             return
 
         # Return the name.




Related Messages


Powered by MHonArc, Updated Thu Aug 21 19:00:02 2014