Skip to content

Commit

Permalink
Fix bug with ControlCombo
Browse files Browse the repository at this point in the history
The value was not being updated when the text was blank
  • Loading branch information
UmSenhorQualquer committed Nov 8, 2018
1 parent de6657f commit 5a66323
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyforms_gui/controls/control_combo.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,5 @@ def _editTextChanged(self, text):
def _currentIndexChanged(self, index):
if not self._addingItem:
item = self._combo.currentText()
if len(item) >= 1:
ControlBase.value.fset(self, self._items[str(item)])
self.current_index_changed_event(index)
ControlBase.value.fset(self, self._items[ str(item) ] )
self.current_index_changed_event(index)

0 comments on commit 5a66323

Please sign in to comment.