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

dev_dylan
Dylan Jeannin 2026-04-21 16:55:04 +02:00
parent 870bb41ff7
commit b58d3e005d
1 changed files with 3 additions and 0 deletions

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