mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
cut buffer must not mess around with libardour selection
Fixes range mode selection/cut/copy that would previously clear track selection
This commit is contained in:
parent
ca815acd61
commit
6ac76734f5
3 changed files with 10 additions and 4 deletions
|
|
@ -57,10 +57,11 @@ struct AudioRangeComparator {
|
|||
}
|
||||
};
|
||||
|
||||
Selection::Selection (const PublicEditor* e)
|
||||
Selection::Selection (const PublicEditor* e, bool mls)
|
||||
: tracks (e)
|
||||
, editor (e)
|
||||
, next_time_id (0)
|
||||
, manage_libardour_selection (mls)
|
||||
{
|
||||
clear ();
|
||||
|
||||
|
|
@ -1544,6 +1545,10 @@ Selection::set (const TrackViewList& track_list)
|
|||
void
|
||||
Selection::clear_tracks (bool)
|
||||
{
|
||||
if (!manage_libardour_selection) {
|
||||
return;
|
||||
}
|
||||
|
||||
Session* s = editor->session();
|
||||
if (s) {
|
||||
CoreSelection& selection (s->selection());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue