mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Fix profile list update at reach selection.
parent
c725e15015
commit
48f6c09436
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue