From c5243a77d3745147fcae519e21ddab51a2e5248e Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Fri, 22 Nov 2019 15:48:30 +0100 Subject: [PATCH] ticket:5704 Remove the connection from the scene --- OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp b/OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp index 74b8629d463..0d30a45b8c6 100644 --- a/OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp +++ b/OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp @@ -2122,6 +2122,7 @@ void GraphicsView::removeCurrentConnection() { if (isCreatingConnection()) { setIsCreatingConnection(false); + removeItem(mpConnectionLineAnnotation); delete mpConnectionLineAnnotation; mpConnectionLineAnnotation = 0; }