diff --git a/hab_gui/widgets/uri_combobox.py b/hab_gui/widgets/uri_combobox.py index 93b8994..57a0d8b 100644 --- a/hab_gui/widgets/uri_combobox.py +++ b/hab_gui/widgets/uri_combobox.py @@ -36,7 +36,7 @@ def refresh(self): self.set_uri(current) def uri(self): - return self.currentText() + return self.currentText().strip() def set_uri(self, uri): # If the uri is already an item in the combo box, select it diff --git a/hab_gui/widgets/uri_line_edit.py b/hab_gui/widgets/uri_line_edit.py index 2157255..d25c9e0 100644 --- a/hab_gui/widgets/uri_line_edit.py +++ b/hab_gui/widgets/uri_line_edit.py @@ -24,7 +24,7 @@ def refresh(self): pass def uri(self): - return self.text() + return self.text().strip() def set_uri(self, uri): self.setText(uri)