From fe151d29f2a9a814f24ef9cf4e76b76d698a273f Mon Sep 17 00:00:00 2001
From: "arnaud.morvan@camptocamp.com" <arnaud.morvan@camptocamp.com>
Date: Sat, 29 Jun 2024 09:01:47 +0200
Subject: [PATCH] Show critical message without duration

---
 PreCourlis/widgets/profile_dialog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PreCourlis/widgets/profile_dialog.py b/PreCourlis/widgets/profile_dialog.py
index 0f817b4..a4c168a 100644
--- a/PreCourlis/widgets/profile_dialog.py
+++ b/PreCourlis/widgets/profile_dialog.py
@@ -386,7 +386,7 @@ class ProfileDialog(QtWidgets.QDialog, FORM_CLASS):
                         "Please add it with the repair profiles algorithm before using this tool."
                     ),
                     Qgis.MessageLevel.Critical,
-                    duration=5,
+                    duration=0,
                 )
 
                 self.layerComboBox.setLayer(None)
-- 
GitLab