diff --git a/src/View/BoundaryCondition/BoundaryConditionWindow.py b/src/View/BoundaryCondition/BoundaryConditionWindow.py index d8ad1362..38b9e6b1 100644 --- a/src/View/BoundaryCondition/BoundaryConditionWindow.py +++ b/src/View/BoundaryCondition/BoundaryConditionWindow.py @@ -69,7 +69,7 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow): self.paste_sc = QShortcut(QKeySequence.Paste, self) def setup_table(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") self._table = TableModel( data = self._study.river, undo = self._undo_stack @@ -119,13 +119,13 @@ class BoundaryConditionWindow(ASubMainWindow, ListedSubWindow): def index_selected_row(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") return table.selectionModel()\ .selectedRows()[0]\ .row() def index_selected_rows(self): - table = self.find(QTableView, "tableView") + table = self.find(QTableView, "tableView_liquid") return list( # Delete duplicate set( diff --git a/src/View/ui/BoundaryConditions.ui b/src/View/ui/BoundaryConditions.ui index 7f4ea44c..602a1887 100644 --- a/src/View/ui/BoundaryConditions.ui +++ b/src/View/ui/BoundaryConditions.ui @@ -25,43 +25,47 @@ - - - 0 + + + Qt::Horizontal - - - Liquid - - - - - - - 0 - 0 - - - - Qt::Horizontal - - - - - - - - + + + 0 + + + + Liquid + + + + + + + + + + Solid + + + + + + + + + + Suspenssion + + + + + + + - - - Solid - - - - - Suspension - + +