mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-04 17:05:31 -05:00
Fix get_num_files() to count the items in the QListWidget, not in the FileSelection QVBoxLayout widget
This commit is contained in:
parent
93f6661801
commit
161e7e380b
@ -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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user