Author: bugman Date: Thu Jun 7 13:25:36 2012 New Revision: 16720 URL: http://svn.gna.org/viewcvs/relax?rev=16720&view=rev Log: Fix for the relaxation data metadata GUI element for when no relaxation data exists. The element no longer fails if data is absent. Modified: branches/uf_redesign/gui/components/relax_data_meta.py Modified: branches/uf_redesign/gui/components/relax_data_meta.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/components/relax_data_meta.py?rev=16720&r1=16719&r2=16720&view=diff ============================================================================== --- branches/uf_redesign/gui/components/relax_data_meta.py (original) +++ branches/uf_redesign/gui/components/relax_data_meta.py Thu Jun 7 13:25:36 2012 @@ -325,6 +325,10 @@ @rtype: bool """ + # No relaxation data. + if not hasattr(cdp, 'ri_ids'): + return True + # The number of IDs. n = len(cdp.ri_ids)