Fix get_num_files() to count the items in the QListWidget, not in the FileSelection QVBoxLayout widget

This commit is contained in:
Miguel Jacq 2018-02-23 12:46:18 +11:00
parent 6c98f4ee92
commit 2868548b45

View file

@ -369,7 +369,7 @@ class FileSelection(QtWidgets.QVBoxLayout):
""" """
Returns the total number of files and folders in the list. 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): def setFocus(self):
""" """