summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-15 02:03:40 -0500
committerDavid Robillard <d@drobilla.net>2014-11-15 02:03:40 -0500
commit89a19808187137b1ddbec7d26786fbe50ed7476a (patch)
tree480b0b3eab7ff50a3b0702f5376c9f5ae26762be /gtk2_ardour
parentb52407043c71f9169a2a8171d07e4e1ade5f07a3 (diff)
Only create MIDI regions on click when in draw mode.
It was much too easy to accidentally create MIDI regions in object mode. If the user isn't in draw mode anyway, then even after creating a region, they can't put notes in it, so I don't think we've lost any discoverability here.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 0aaec8d24d..1237c73c3d 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3970,7 +3970,7 @@ RubberbandSelectDrag::finished (GdkEvent* event, bool movement_occurred)
if ((mtv = dynamic_cast<MidiTimeAxisView*>(_editor->clicked_axisview)) != 0) {
/* MIDI track */
- if (_editor->selection->empty()) {
+ if (_editor->selection->empty() && _editor->mouse_mode == MouseDraw) {
/* nothing selected */
add_midi_region (mtv);
do_deselect = false;