Skip to content

Commit cb22d06

Browse files
committed
Fixes #767
1 parent c647dff commit cb22d06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Interface/Application/Connection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void ConnectionLine::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
365365
if (action && action->text() == deleteAction)
366366
{
367367
scene()->removeItem(this);
368-
destroy();
368+
destroy(); //TODO: another place to hook up deleteLater()
369369
}
370370
else if (action && action->text() == editNotesAction)
371371
{

src/Interface/Application/Port.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ void PortWidget::addConnection(ConnectionLine* c)
371371

372372
void PortWidget::removeConnection(ConnectionLine* c)
373373
{
374+
disconnect(c);
374375
connections_.erase(c);
375376
if (connections_.empty())
376377
setConnected(false);

0 commit comments

Comments
 (0)