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 93f6661801
commit 161e7e380b
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6

View file

@ -369,7 +369,7 @@ class FileSelection(QtWidgets.QVBoxLayout):
"""
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):
"""