Instantiate empty filenames list

This commit is contained in:
Miguel Jacq 2018-02-21 15:47:21 +11:00
parent 26e1cc47ff
commit f5eeff8e76

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)