desactivation du clic sur le graph du réseau hors de l'onglet d'édition du réseau (ex. BoundaryConditions...)

This commit is contained in:
Dylan Jeannin committed 2026-04-21 16:55:04 +02:00
1 parent 870bb41ff7
commit b58d3e005d
1 file changed
+3
+3
View File
@@ -925,6 +925,9 @@ class GraphWidget(QGraphicsView):
self.scale(scaleFactor, scaleFactor)
def mousePressEvent(self, event):
if self._only_display or self.graph._status.is_read_only():
return
pos = self.mapToScene(event.pos())
self.clicked = True