summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 54dc7a6644..7639d47dbc 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -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());