You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defupdateFolderView(self):
"""Clear existing data and set new data for the folder tableview"""self.mda_folder_tableview.clearContents()
self.mda_folder_tableview.displayTable()
model=self.mda_folder_tableview.tableView.model()
ifmodelisnotNoneandlen(self.mdaFileList()) >0:
self.mda_folder_tableview.tableView.setFocus()
selection_model=self.mda_folder_tableview.tableView.selectionModel()
self.setSelectionModel(selection_model)
utils.reconnect(self.selectionModel().currentChanged, self.onFileSelected)
This last line triggers onFileSelected (for what appear to be the first file of the previous selected subfolder?); only happens at the third occurrence of changing subfolder in subfolder menu, then second, then every time? Commenting out this line solve the problem but would create more issues (new selection model no longer connected to the new folder table view).
I tried to disconnect the selection model prior to creating the new one but that does not work:
defupdateFolderView(self):
"""Clear existing data and set new data for the folder tableview"""ifself.selectionModel() isnotNone:
try:
self.selectionModel().currentChanged.disconnect(self.onFileSelected)
except (TypeError, RuntimeError):
passself.mda_folder_tableview.clearContents()
self.mda_folder_tableview.displayTable()
model=self.mda_folder_tableview.tableView.model()
ifmodelisnotNoneandlen(self.mdaFileList()) >0:
self.mda_folder_tableview.tableView.setFocus()
selection_model=self.mda_folder_tableview.tableView.selectionModel()
self.setSelectionModel(selection_model)
self.selectionModel().currentChanged.connect(self.onFileSelected)
To be investigated. @prjemian I think That can be v1.1, not a big deal (does not make the app crash.
The text was updated successfully, but these errors were encountered:
This last line triggers
onFileSelected
(for what appear to be the first file of the previous selected subfolder?); only happens at the third occurrence of changing subfolder in subfolder menu, then second, then every time? Commenting out this line solve the problem but would create more issues (new selection model no longer connected to the new folder table view).I tried to disconnect the selection model prior to creating the new one but that does not work:
To be investigated.
@prjemian I think That can be v1.1, not a big deal (does not make the app crash.
The text was updated successfully, but these errors were encountered: