Commit 52e274e3 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

network: Small fix.

Showing with 1 addition and 1 deletion
+1 -1
...@@ -596,7 +596,7 @@ class GraphWidget(QGraphicsView): ...@@ -596,7 +596,7 @@ class GraphWidget(QGraphicsView):
self.mouse_origin_y = pos.y() self.mouse_origin_y = pos.y()
items = self.items(event.pos()) items = self.items(event.pos())
if type(items[0]) == EdgeItem: if items and type(items[0]) == EdgeItem:
edge = items[0] edge = items[0]
if edge: if edge:
self.setCurrentEdge(edge) self.setCurrentEdge(edge)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment