13
0

Reduce selection loss when changing mouse modes.

Never change selection when smart mode toggled.
This commit is contained in:
nick_m 2015-01-15 01:39:00 +11:00
parent 44f2f53cde
commit 18c502f646

View File

@ -346,12 +346,41 @@ Editor::update_time_selection_display ()
would destroy the range selection rectangle, which we need to stick
around for AutomationRangeDrag. */
selection->clear_regions ();
selection->clear_playlists ();
break;
default:
case MouseContent:
/* This handles internal edit.
Clear everything except points and notes.
*/
selection->clear_regions();
selection->clear_lines();
selection->clear_playlists ();
selection->clear_time ();
selection->clear_tracks ();
break;
case MouseTimeFX:
/* We probably want to keep region selection */
selection->clear_points ();
selection->clear_lines();
selection->clear_playlists ();
selection->clear_time ();
selection->clear_tracks ();
break;
case MouseAudition:
/*Don't lose lines or points if no action in this mode */
selection->clear_regions ();
selection->clear_playlists ();
selection->clear_time ();
selection->clear_tracks ();
break;
default:
/*Clear everything */
selection->clear_objects();
selection->clear_time ();
selection->clear_tracks ();
break;