From 44f2f53cdef43bc7ca3abe60bb138baa2565db0c Mon Sep 17 00:00:00 2001 From: nick_m Date: Thu, 15 Jan 2015 00:06:16 +1100 Subject: [PATCH] A test for less brutall deselection on mouse mode change. Mostly stops toggling smart mode from doing anything to the selection. --- gtk2_ardour/editor_mouse.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index de71c4a77f..b8da2ee80c 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -342,14 +342,16 @@ Editor::update_time_selection_display () selection->ClearMidiNoteSelection (); /* EMIT SIGNAL */ break; case MouseDraw: - /* Clear top level objects, but not time or tracks, since that - woulddestroy the range selection rectangle, which we need to stick + /* Clear regions, but not time or tracks, since that + would destroy the range selection rectangle, which we need to stick around for AutomationRangeDrag. */ - selection->clear_objects (); + selection->clear_regions (); break; default: - /* Clear everything. */ - selection->clear_objects (); + /* This handles internal edit. + Clear everything except points and notes. + */ + selection->clear_regions(); selection->clear_time (); selection->clear_tracks (); break;