Commit db75315b authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

BC: Open multiple edit window.

Showing with 11 additions and 6 deletions
+11 -6
......@@ -63,7 +63,7 @@ class River(Graph):
@property
def boundary_condition(self):
return self._boundary_condition.copy()
return self._boundary_condition
def has_current_reach(self):
return self._current_reach is not None
......
......@@ -331,11 +331,11 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow):
)
def add(self):
if len(self._lst) == 0:
rows = self.index_selected_rows()
if len(self._lst) == 0 or len(rows) == 0:
self._table.add(0)
else:
row = self.index_selected_row()
self._table.add(row)
self._table.add(rows[0])
def delete(self):
rows = self.index_selected_rows()
......@@ -366,5 +366,10 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow):
self._table.redo()
def edit(self):
win = EditBoundaryConditionWindow(data=None, parent=self)
win.show()
rows = self.index_selected_rows()
for row in rows:
win = EditBoundaryConditionWindow(
data=self._lst[row],
parent=self
)
win.show()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment