From 3b2a41e0e9f1a22083b54ef2b9b129721c8e8699 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 24 May 2023 09:23:33 +0200
Subject: [PATCH] Mainwindow, stricklers: Minor change.

---
 src/View/MainWindow.py        | 4 ++--
 src/View/Stricklers/Window.py | 2 --
 src/View/ui/MainWindow.ui     | 8 ++++----
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py
index c1bc091d..5761149b 100644
--- a/src/View/MainWindow.py
+++ b/src/View/MainWindow.py
@@ -47,7 +47,7 @@ define_model_action = [
     "action_toolBar_mesh", "action_toolBar_run_meshing_tool",
     "action_toolBar_boundary_cond", "action_toolBar_lateral_contrib",
     "action_toolBar_spills", "action_toolBar_sections",
-    "action_toolBar_frictions", "action_toolBar_building",
+    "action_toolBar_stricklers", "action_toolBar_building",
 ]
 
 action = (
@@ -126,7 +126,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
             "action_toolBar_boundary_cond": self.open_boundary_cond,
             "action_toolBar_lateral_contrib": self.open_lateral_contrib,
             "action_toolBar_spills": lambda: self.open_dummy("Deversement"),
-            "action_toolBar_frictions": self.open_stricklers,
+            "action_toolBar_stricklers": self.open_stricklers,
             "action_toolBar_building": lambda: self.open_dummy("Ouvrages"),
         }
 
diff --git a/src/View/Stricklers/Window.py b/src/View/Stricklers/Window.py
index d5f325ca..bae6ccad 100644
--- a/src/View/Stricklers/Window.py
+++ b/src/View/Stricklers/Window.py
@@ -65,8 +65,6 @@ class StricklersWindow(ASubMainWindow, ListedSubWindow):
             else:
                 data = self._config.stricklers
 
-            print(data)
-
             self._table[t] = TableModel(
                 data = data,
                 undo = self._undo_stack,
diff --git a/src/View/ui/MainWindow.ui b/src/View/ui/MainWindow.ui
index d5a2b900..0c77e22f 100644
--- a/src/View/ui/MainWindow.ui
+++ b/src/View/ui/MainWindow.ui
@@ -298,7 +298,7 @@
    <addaction name="separator"/>
    <addaction name="action_toolBar_sections"/>
    <addaction name="separator"/>
-   <addaction name="action_toolBar_frictions"/>
+   <addaction name="action_toolBar_stricklers"/>
    <addaction name="separator"/>
    <addaction name="action_toolBar_building"/>
    <addaction name="separator"/>
@@ -823,12 +823,12 @@
     <string>Edit section frictions and lateral contributions</string>
    </property>
   </action>
-  <action name="action_toolBar_frictions">
+  <action name="action_toolBar_stricklers">
    <property name="text">
-    <string>Frictions</string>
+    <string>Stricklers</string>
    </property>
    <property name="toolTip">
-    <string>Edit friction at the bottom</string>
+    <string>Edit the study stricklers</string>
    </property>
   </action>
   <action name="action_toolBar_building">
-- 
GitLab