Author: bugman Date: Tue Jun 11 18:59:29 2013 New Revision: 20052 URL: http://svn.gna.org/viewcvs/relax?rev=20052&view=rev Log: Manually ported r20048 from the relax_disp branch where it was deleted to the trunk. ..... Partial fix for bug #20889 (https://gna.org/bugs/?20889). The peak intensity wizard now detects when the spectrum ID argument of the first page is set to a list. The default value for all subsequent user functions is now set to the first element of that list. ..... Modified: trunk/gui/wizards/peak_intensity.py Modified: trunk/gui/wizards/peak_intensity.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/wizards/peak_intensity.py?rev=20052&r1=20051&r2=20052&view=diff ============================================================================== --- trunk/gui/wizards/peak_intensity.py (original) +++ trunk/gui/wizards/peak_intensity.py Tue Jun 11 18:59:29 2013 @@ -222,6 +222,10 @@ # Set the spectrum ID. id = page.uf_args['spectrum_id'].GetValue() + # Handle list arguments. + if isinstance(id, list): + id = id[0] + # Set the ID in the page. page = self.get_page(self.page_indices[page_key]) if index == None: