Maybe clear time-selection when switching to draw tool
This commit is contained in:
parent
e81b2353cc
commit
d57676b9c7
@ -450,10 +450,16 @@ Editor::update_time_selection_display ()
|
|||||||
break;
|
break;
|
||||||
case MouseDraw:
|
case MouseDraw:
|
||||||
/* Clear regions, but not time or tracks, since that
|
/* Clear regions, but not time or tracks, since that
|
||||||
would destroy 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_regions ();
|
selection->clear_regions ();
|
||||||
selection->clear_playlists ();
|
selection->clear_playlists ();
|
||||||
|
/* .. unless there is no track selection (i.e. arrangement section
|
||||||
|
* selection). In which case time is cleared too.
|
||||||
|
*/
|
||||||
|
if (selection->tracks.empty ()) {
|
||||||
|
selection->clear_time ();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MouseContent:
|
case MouseContent:
|
||||||
/* This handles internal edit.
|
/* This handles internal edit.
|
||||||
|
Loading…
Reference in New Issue
Block a user