Skip to content

Commit

Permalink
Check that combobox text is not empty string before emiting valid sig…
Browse files Browse the repository at this point in the history
…nal.
  • Loading branch information
rlaverde committed Aug 9, 2017
1 parent 87270a6 commit 007e906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/widgets/comboboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def selected(self):

def validate(self, qstr, editing=True):
"""Validate entered path"""
if self.selected_text == qstr:
if self.selected_text == qstr and qstr != '':
self.valid.emit(True, True)
return

Expand Down

0 comments on commit 007e906

Please sign in to comment.