diff --git a/src/interface/desktop/configure_screen.py b/src/interface/desktop/configure_screen.py index 18069980..e0b7e747 100644 --- a/src/interface/desktop/configure_screen.py +++ b/src/interface/desktop/configure_screen.py @@ -157,7 +157,7 @@ class ConfigureScreen(QtWidgets.QDialog): default_search_config = self.get_default_config(search_type = child.search_type) self.new_config['content-type'][child.search_type.value] = merge_dicts(current_search_config, default_search_config) elif isinstance(child, FileBrowser) and child.search_type in self.new_config['content-type']: - self.new_config['content-type'][child.search_type.value]['input-files'] = child.getPaths() + self.new_config['content-type'][child.search_type.value]['input-files'] = child.getPaths() if child.getPaths() != [] else None def update_processor_settings(self): "Update config with conversation settings from UI" diff --git a/src/interface/desktop/file_browser.py b/src/interface/desktop/file_browser.py index bc87235e..901ad94e 100644 --- a/src/interface/desktop/file_browser.py +++ b/src/interface/desktop/file_browser.py @@ -65,4 +65,7 @@ class FileBrowser(QtWidgets.QWidget): self.lineEdit.setText(",".join(self.filepaths)) def getPaths(self): - return self.filepaths + if self.lineEdit.text() == '': + return [] + else: + return self.lineEdit.text().split(',')