diff options
author | David Robillard <d@drobilla.net> | 2014-04-07 19:22:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-04-07 19:22:17 +0000 |
commit | 2f2a44f916e44d7051ad55a98bcc2401d7a14faf (patch) | |
tree | 42f666bca1b119b78646e53edb8dbdb24dc679e5 | |
parent | f8fff3ba43c650cd028dac6e16cf700378b952dc (diff) | |
download | ganv-2f2a44f916e44d7051ad55a98bcc2401d7a14faf.tar.gz ganv-2f2a44f916e44d7051ad55a98bcc2401d7a14faf.tar.bz2 ganv-2f2a44f916e44d7051ad55a98bcc2401d7a14faf.zip |
Fix selecting input ports without controls.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5363 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/Canvas.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |