From 007e90679ca3792e6dd5017dadd4548a927f17e8 Mon Sep 17 00:00:00 2001 From: Rafael Laverde Date: Wed, 9 Aug 2017 18:01:33 -0500 Subject: [PATCH] Check that combobox text is not empty string before emiting valid signal. --- spyder/widgets/comboboxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyder/widgets/comboboxes.py b/spyder/widgets/comboboxes.py index 9799c7af1af..3e8314fd2c8 100644 --- a/spyder/widgets/comboboxes.py +++ b/spyder/widgets/comboboxes.py @@ -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