mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-17 19:36:08 -04:00
Instantiate empty filenames list
This commit is contained in:
parent
26e1cc47ff
commit
f5eeff8e76
@ -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…
x
Reference in New Issue
Block a user