From 3b5b7c09dd5424620ee189bbb9fdbf8028b83bb8 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Fri, 25 Aug 2023 11:15:33 +0200
Subject: [PATCH] Results, River: Minor change.

---
 src/Model/River.py           | 4 ----
 src/View/RunSolver/Window.py | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/Model/River.py b/src/Model/River.py
index 91d765ba..b1969543 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 c307157a..56290b6c 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)
 
-- 
GitLab