Author: bugman Date: Fri May 11 20:42:36 2012 New Revision: 16248 URL: http://svn.gna.org/viewcvs/relax?rev=16248&view=rev Log: Fixes for allowing a default of 0 in a combo box. Modified: branches/uf_redesign/gui/components/combo_list.py branches/uf_redesign/gui/wizard_elements.py Modified: branches/uf_redesign/gui/components/combo_list.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/components/combo_list.py?rev=16248&r1=16247&r2=16248&view=diff ============================================================================== --- branches/uf_redesign/gui/components/combo_list.py (original) +++ branches/uf_redesign/gui/components/combo_list.py Fri May 11 20:42:36 2012 @@ -314,7 +314,7 @@ self._combo_boxes[i].Insert(self.convert_to_gui(self._choices[j]), j, self._data[j]) # Set the default selection. - if self._default: + if self._default != None: # Translate if needed. if self._default in self._choices: string = self._default Modified: branches/uf_redesign/gui/wizard_elements.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16248&r1=16247&r2=16248&view=diff ============================================================================== --- branches/uf_redesign/gui/wizard_elements.py (original) +++ branches/uf_redesign/gui/wizard_elements.py Fri May 11 20:42:36 2012 @@ -1437,7 +1437,7 @@ self._field.Insert(self.convert_to_gui(combo_choices[i]), i, combo_data[i]) # Set the default selection. - if combo_default: + if combo_default != None: # Translate if needed. if combo_default in combo_choices: string = combo_default