From 2f2a44f916e44d7051ad55a98bcc2401d7a14faf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Apr 2014 19:22:17 +0000 Subject: Fix selecting input ports without controls. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5363 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Canvas.cpp b/src/Canvas.cpp index e5e165c..9858713 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -1523,7 +1523,8 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) event->button.y_root == control_start_y) { select_port_toggle(port, event->button.state); } - } else if (event->button.state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK)) { + } else if (_selected_ports.empty() || + (event->button.state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK))) { select_port_toggle(port, event->button.state); } else { selection_joined_with(port); -- cgit v1.2.1