fix '_fill_selection' by accessing model method

This commit is contained in:
Jakub Trllo 2023-12-27 16:33:22 +01:00
parent 6db0dcbb44
commit f7fba84aee

View file

@ -538,7 +538,8 @@ class LoadedFilesView(QtWidgets.QTreeView):
if index.isValid():
return
index = self._model.index(0, 0)
model = self.model()
index = model.index(0, 0)
if index.isValid():
self.setCurrentIndex(index)