diff options
author | David Robillard <d@drobilla.net> | 2011-12-23 20:13:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-23 20:13:18 +0000 |
commit | 8ccb93e6c94ec56c5845c846f23630abe4e797cb (patch) | |
tree | a8dfe72282643046439cb3156cf2fb94f7f4910d | |
parent | 0316028e51b17a933be001719c9f69ba5097be03 (diff) | |
download | ganv-8ccb93e6c94ec56c5845c846f23630abe4e797cb.tar.gz ganv-8ccb93e6c94ec56c5845c846f23630abe4e797cb.tar.bz2 ganv-8ccb93e6c94ec56c5845c846f23630abe4e797cb.zip |
Fix click to connect/disconnect.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3904 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Canvas.cpp | 3 |
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; |