diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 270baef7..2a024620 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -191,6 +191,7 @@ class FileList(QtWidgets.QListWidget): """ Add a file or directory to this widget. """ + filenames = [] for index in range(self.count()): filenames.append(self.item(index).filename)