Results: Fix profile list update at reach selection.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-26 09:32:05 +01:00
1 parent c725e15015
commit 48f6c09436
2 files changed
+5

No files matched your search

+3
View File
@@ -76,7 +76,10 @@ class TableModel(PamhyrTableModel):
def update(self, reach):
_river = self._data.river
if self._opt_data == "reach":
self._lst = _river.reachs
else:
self._lst = _river.reach(reach).profiles
self.layoutChanged.emit()
+2
View File
@@ -361,6 +361,8 @@ class ResultsWindow(PamhyrWindow):
)
table.scrollTo(index)
self._table["profile"].update(ind)
def update_table_selection_profile(self, ind):
table = self.find(QTableView, f"tableView_profile")
selectionModel = table.selectionModel()