diff --git a/src/Model/River.py b/src/Model/River.py index 91d765ba05f31cc1e779155fab7a5decd0af0693..b1969543e04a56cf179e9654b566833e34e6e2bb 100644 --- a/src/Model/River.py +++ b/src/Model/River.py @@ -311,10 +311,6 @@ class River(Graph, SQLSubModel): self._save_submodel(execute, objs, data) return True - @property - def reach(self): - return self._reach - @property def frictions(self): return self._frictions diff --git a/src/View/RunSolver/Window.py b/src/View/RunSolver/Window.py index c307157af191b3b1d89ad1034098bd1e4b084f52..56290b6c8e627ea0ee8fa05b4504313308b05d4e 100644 --- a/src/View/RunSolver/Window.py +++ b/src/View/RunSolver/Window.py @@ -166,6 +166,7 @@ class SolverLogWindow(ASubMainWindow, ListedSubWindow): self.find(QAction, "action_stop").setEnabled(True) self.find(QAction, "action_log_file").setEnabled(False) + self.find(QAction, "action_results").setEnabled(False) def setup_alarm(self): self._alarm = QTimer() @@ -201,6 +202,7 @@ class SolverLogWindow(ASubMainWindow, ListedSubWindow): self.find(QAction, "action_pause").setEnabled(False) self.find(QAction, "action_stop").setEnabled(False) self.find(QAction, "action_results").setEnabled(True) + if self._solver.log_file() != "": self.find(QAction, "action_log_file").setEnabled(True)