From f5eeff8e766d16626c063ad2f44f399a4da5d789 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 21 Feb 2018 15:47:21 +1100 Subject: [PATCH] Instantiate empty filenames list --- onionshare_gui/file_selection.py | 1 + 1 file changed, 1 insertion(+) 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)