summaryrefslogtreecommitdiffstats
path: root/src/Canvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Canvas.cpp')
-rw-r--r--src/Canvas.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index 69fabf6..febc671 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1085,6 +1085,9 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port)
} else if (!port->impl->is_input) {
port_dragging = true;
return true;
+ } else if (_last_selected_port && _last_selected_port != port) {
+ ports_joined(_last_selected_port, port);
+ return true;
}
}
break;