summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-16 03:09:05 +0000
committerDavid Robillard <d@drobilla.net>2015-02-16 03:09:05 +0000
commit81de4ad22309c0ac8899bd9d257b5db5dac4f0fa (patch)
tree453928e09a76a710939fff2fc154010fe4b0f751 /src
parent9d602fde3a77aa0602d8bf92501ba0528598df17 (diff)
downloadganv-81de4ad22309c0ac8899bd9d257b5db5dac4f0fa.tar.gz
ganv-81de4ad22309c0ac8899bd9d257b5db5dac4f0fa.tar.bz2
ganv-81de4ad22309c0ac8899bd9d257b5db5dac4f0fa.zip
Preserve selection for quickly making several connections.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5575 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Canvas.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Canvas.cpp b/src/Canvas.cpp
index c3ed2f6..d193108 100644
--- a/src/Canvas.cpp
+++ b/src/Canvas.cpp
@@ -1385,17 +1385,14 @@ GanvCanvasImpl::connect_drag_handler(GdkEvent* event)
} else {
// Connect to selected ports
selection_joined_with(_connect_port);
- unselect_ports();
_connect_port = NULL;
}
} else { // drag ended on different port
ports_joined(_connect_port, GANV_PORT(joinee));
- unselect_ports();
_connect_port = NULL;
}
}
- unselect_ports();
end_connect_drag();
return true;
}
@@ -1526,7 +1523,6 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port)
if (port_dragging) {
if (_connect_port) { // dragging
ports_joined(port, _connect_port);
- unselect_ports();
} else {
port_clicked(event, port);
}
@@ -1616,7 +1612,6 @@ GanvCanvasImpl::port_clicked(GdkEvent* event, GanvPort* port)
if (!modded && _last_selected_port &&
_last_selected_port->impl->is_input != port->impl->is_input) {
selection_joined_with(port);
- unselect_ports();
} else {
select_port_toggle(port, event->button.state);
}