[plot] Issue with profile drawing mode
To reproduce:
- Display an image with `sx.imshow`
- Select a profile tool
- Open mask tools
- Select rectangle mask drawing tool and draw a mask, the profile tool is still active...
diff --git a/silx/gui/plot/Profile.py b/silx/gui/plot/Profile.py
index 99cd5676f..7787bedda 100644
--- a/silx/gui/plot/Profile.py
+++ b/silx/gui/plot/Profile.py
@@ -494,6 +494,12 @@ class ProfileToolBar(qt.QToolBar):
         """
         if source is not self:
             self.clearProfile()
+
+            # Uncheck all drawing profile modes
+            self.hLineAction.setChecked(False)
+            self.vLineAction.setChecked(False)
+            self.lineAction.setChecked(False)
+
             if self.getProfileMainWindow() is not None:
                 self.getProfileMainWindow().hide()
 
['silx/gui/plot/Profile.py']