Skip to content

Commit bc86d38

Browse files
committed
First set the connection creation flag false to avoid unexpected events
Fixes ticket:6182
1 parent b18b700 commit bc86d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,7 @@ void GraphicsView::addConnection(Element *pComponent)
20612061
mpConnectionLineAnnotation->setLineThickness(0.5);
20622062
}
20632063
} else { // When clicking the end component
2064+
setIsCreatingConnection(false);
20642065
mpConnectionLineAnnotation->setEndComponent(pComponent);
20652066
// update the last point to the center of component
20662067
QPointF newPos;
@@ -2223,7 +2224,6 @@ void GraphicsView::addConnection(Element *pComponent)
22232224
mpModelWidget->updateModelText();
22242225
}
22252226
}
2226-
setIsCreatingConnection(false);
22272227
}
22282228
}
22292229
}

0 commit comments

Comments
 (0)