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 */ selection->ClearMidiNoteSelection (); /* EMIT SIGNAL */
break; break;
case MouseDraw: case MouseDraw:
/* Clear top level objects, but not time or tracks, since that /* Clear regions, but not time or tracks, since that
woulddestroy the range selection rectangle, which we need to stick would destroy the range selection rectangle, which we need to stick
around for AutomationRangeDrag. */ around for AutomationRangeDrag. */
selection->clear_objects (); selection->clear_regions ();
break; break;
default: default:
/* Clear everything. */ /* This handles internal edit.
selection->clear_objects (); Clear everything except points and notes.
*/
selection->clear_regions();
selection->clear_time (); selection->clear_time ();
selection->clear_tracks (); selection->clear_tracks ();
break; break;