mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 19:52:50 -03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue