From 8ccb93e6c94ec56c5845c846f23630abe4e797cb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Dec 2011 20:13:18 +0000 Subject: Fix click to connect/disconnect. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3904 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.1