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):
|
def update(self, reach):
|
||||||
_river = self._data.river
|
_river = self._data.river
|
||||||
|
|
||||||
if self._opt_data == "reach":
|
if self._opt_data == "reach":
|
||||||
self._lst = _river.reachs
|
self._lst = _river.reachs
|
||||||
else:
|
else:
|
||||||
self._lst = _river.reach(reach).profiles
|
self._lst = _river.reach(reach).profiles
|
||||||
|
|
||||||
|
self.layoutChanged.emit()
|
||||||
|
|
|
||||||
|
|
@ -361,6 +361,8 @@ class ResultsWindow(PamhyrWindow):
|
||||||
)
|
)
|
||||||
table.scrollTo(index)
|
table.scrollTo(index)
|
||||||
|
|
||||||
|
self._table["profile"].update(ind)
|
||||||
|
|
||||||
def update_table_selection_profile(self, ind):
|
def update_table_selection_profile(self, ind):
|
||||||
table = self.find(QTableView, f"tableView_profile")
|
table = self.find(QTableView, f"tableView_profile")
|
||||||
selectionModel = table.selectionModel()
|
selectionModel = table.selectionModel()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue