Author: bugman Date: Tue Sep 3 17:36:03 2013 New Revision: 20775 URL: http://svn.gna.org/viewcvs/relax?rev=20775&view=rev Log: The peak intensity wizard in the GUI is now more robust. The wizard_update_ids() method can now better handle missing data. This is encountered if a user skips the first elements of the wizard. 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=20775&r1=20774&r2=20775&view=diff ============================================================================== --- trunk/gui/wizards/peak_intensity.py (original) +++ trunk/gui/wizards/peak_intensity.py Tue Sep 3 17:36:03 2013 @@ -222,6 +222,11 @@ # Handle list arguments. if isinstance(id, list): + # If an empty list is encountered, exit this method without doing anything. + if id == []: + return + + # Use only the first element. id = id[0] # Set the ID in the page.