mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Instantiate empty filenames list
This commit is contained in:
parent
fd4bc51ec2
commit
6815665f1d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user