summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@glw.com>2012-11-26 22:43:10 +0000
committerBen Loftis <ben@glw.com>2012-11-26 22:43:10 +0000
commite63da83c530f8c2f81bfba4ec6d77c7adad8a50d (patch)
tree407fdce24fe888539f9a2f767f973720b1394a28 /gtk2_ardour/editor_drag.cc
parentf9d1faa63490d77f4a1e9493fcac5b3166c1b1d8 (diff)
tweak Smart Mode to be more like Mixbus. Smart mode is just a modifier on Object mode which provides Range selection in the top half of the waveform. probably lots of corner cases to clear up before its all over, but at least we can use Mixbus as a consistent target rather than making it all up again.
git-svn-id: svn://localhost/ardour2/branches/3.0@13551 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc27
1 files changed, 2 insertions, 25 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 07971e4d22..c0155a8b62 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -3607,9 +3607,7 @@ SelectionDrag::finished (GdkEvent* event, bool movement_occurred)
s->request_play_range (&_editor->selection->time, true);
} else {
if (Config->get_always_play_range()) {
- if (_editor->doing_range_stuff()) {
- s->request_locate (_editor->get_selection().time.start());
- }
+ s->request_locate (_editor->get_selection().time.start());
}
}
}
@@ -3617,28 +3615,7 @@ SelectionDrag::finished (GdkEvent* event, bool movement_occurred)
} else {
/* just a click, no pointer movement.
*/
-
- if (Keyboard::no_modifier_keys_pressed (&event->button)) {
- if (!_time_selection_at_start) {
- if (_editor->clicked_regionview) {
- if (_editor->get_selection().selected (_editor->clicked_regionview)) {
- /* range select the entire current
- region selection
- */
- _editor->select_range (_editor->get_selection().regions.start(),
- _editor->get_selection().regions.end_frame());
- } else {
- /* range select this (unselected)
- * region
- */
- _editor->select_range (_editor->clicked_regionview->region()->position(),
- _editor->clicked_regionview->region()->last_frame());
- }
- }
- } else {
- _editor->selection->clear_time();
- }
- }
+ _editor->selection->clear_time();
if (_editor->clicked_axisview && !_editor->selection->selected (_editor->clicked_axisview)) {
_editor->selection->set (_editor->clicked_axisview);