Skip to content

Commit

Permalink
A test for less brutall deselection on mouse mode change.
Browse files Browse the repository at this point in the history
Mostly stops toggling smart mode from doing anything to the selection.
  • Loading branch information
nmains committed Jan 14, 2015
1 parent e1f8112 commit 44f2f53
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gtk2_ardour/editor_mouse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 44f2f53

Please sign in to comment.