Skip to content

Commit

Permalink
Merge pull request #4928 from rlaverde/static-code-valid-filebox
Browse files Browse the repository at this point in the history
PR: Check that combobox text is not empty string before emiting valid signal
  • Loading branch information
ccordoba12 authored Aug 10, 2017
2 parents 87270a6 + 007e906 commit de1d6ac
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 de1d6ac

Please sign in to comment.