Closed velorom closed 2 years ago
Thanks for pointing this out, I'll have a look in the nearest days.
There is another small fix. Maybe it is a typo, but in NodeGraphicsObject::itemChange
you must change the ItemPositionChange
value to ItemPositionHasChanged
, because you call moveConnections()
, where you update connections positions. But at this moment node position is not changed yet. This leads to the effect of connections lagging behind node ports.
Thanks for your valuable and inspective remarks!
In
ConnectionGraphicsObject
onmouseMove
event you transfer self to hovered node for reaction:ngo->reactToConnection(this);
This connection is using inNodePainter::drawConnectionPoints
for painting ports. And you reset this pointer at the end of this method. But sometimesmouseRelease
event ofConnectionGraphicsObject
and corresponding destroying of draft connection happens beforeNodePainter::drawConnectionPoints
call. So sometimesNodePainter
accesses the destroyed pointer.I think you need to let the scene set reaction connection to nodes and tracks for it destruction.