13
0

A test for less brutall deselection on mouse mode change.

Mostly stops toggling smart mode from doing anything to the selection.
This commit is contained in:
nick_m 2015-01-15 00:06:16 +11:00
parent e1f8112f81
commit 44f2f53cde

View File

@ -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;