network: Small fix.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-03-24 13:46:11 +01:00
1 parent 525fb8e868
commit 52e274e315
1 file changed
+1 -1
+1 -1
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)