network: Small fix.

mesh
Pierre-Antoine Rouby 2023-03-24 13:46:11 +01:00
parent 525fb8e868
commit 52e274e315
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ class GraphWidget(QGraphicsView):
self.mouse_origin_y = pos.y()
items = self.items(event.pos())
if type(items[0]) == EdgeItem:
if items and type(items[0]) == EdgeItem:
edge = items[0]
if edge:
self.setCurrentEdge(edge)