nodeview: set drop_edge to null after placement

Fixes segfault placing more than one node.
This commit is contained in:
itsmattkc
2020-02-20 16:39:04 +11:00
parent 4914182206
commit 654b679658
+2
View File
@@ -251,6 +251,8 @@ void NodeView::mousePressEvent(QMouseEvent *event)
Core::instance()->undo_stack()->push(command);
}
drop_edge_ = nullptr;
}
QGraphicsView::mousePressEvent(event);