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.
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits