Author: bugman Date: Fri Jun 8 21:16:57 2012 New Revision: 16798 URL: http://svn.gna.org/viewcvs/relax?rev=16798&view=rev Log: Bug fix for the SetValue() method of the Combo_list GUI input element matching the fix of r16695. If the value is None, this no longer fails for read only combo boxes. Modified: branches/uf_redesign/gui/input_elements/combo_list.py Modified: branches/uf_redesign/gui/input_elements/combo_list.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/input_elements/combo_list.py?rev=16798&r1=16797&r2=16798&view=diff ============================================================================== --- branches/uf_redesign/gui/input_elements/combo_list.py (original) +++ branches/uf_redesign/gui/input_elements/combo_list.py Fri Jun 8 21:16:57 2012 @@ -334,7 +334,8 @@ if not found: # Invalid value. if self._read_only: - raise RelaxError("The Value element is read only, cannot set the value '%s'." % value) + if value != None: + raise RelaxError("The Value element is read only, cannot set the value '%s'." % value) # Set the unknown value, and remove the selection. else: