undo command for reach selection in geometry

This commit is contained in:
Theophile Terraz committed 2025-06-24 11:22:00 +02:00
1 parent f35048b89f
commit d6c1316178
5 files changed
+43 -9

No files matched your search

+2 -6
View File
@@ -546,12 +546,8 @@ class GeometryWindow(PamhyrWindow):
parent=self
)
if dlg.exec():
self._reach = self._study.river.current_reach().reach
self.setup_table()
self.update_redraw() # Profile selection when line change in table
self.find(QTableView, "tableView").selectionModel()\
.selectionChanged\
.connect(self.select_current_profile)
self._table.change_reach(dlg.reach, self)
except Exception as e:
logger_exception(e)
return