Instantiate empty filenames list

This commit is contained in:
Miguel Jacq 2018-02-21 15:47:21 +11:00
parent fd4bc51ec2
commit 6815665f1d
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -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)