Author: bugman
Date: Tue Sep  2 16:27:34 2014
New Revision: 25556

URL: http://svn.gna.org/viewcvs/relax?rev=25556&view=rev
Log:
Improvements for the spectrum.error_analysis button in the spectrum list GUI 
element.

The subset argument is set to None if no spectra are selected.


Modified:
    trunk/gui/components/spectrum.py

Modified: trunk/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/components/spectrum.py?rev=25556&r1=25555&r2=25556&view=diff
==============================================================================
--- trunk/gui/components/spectrum.py    (original)
+++ trunk/gui/components/spectrum.py    Tue Sep  2 16:27:34 2014
@@ -350,6 +350,10 @@
 
             # Get the next selected item.
             item = self.element.GetNextSelected(item)
+
+        # No selected items.
+        if not len(ids):
+            ids = None
 
         # Launch the dialog.
         uf_store['spectrum.error_analysis'](subset=ids, wx_wizard_modal=True)


_______________________________________________
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

Reply via email to