diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 6fee2c77..e4861694 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -369,7 +369,7 @@ class FileSelection(QtWidgets.QVBoxLayout): """ Returns the total number of files and folders in the list. """ - return len(range(self.count())) + return len(range(self.file_list.count())) def setFocus(self): """