From 453e07d0a257c0fd34b6ed5f8f4d0f6ffb862c4f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 26 Mar 2017 16:12:10 +0200 Subject: make selection of tracks/busses after adding them slightly more efficient --- gtk2_ardour/editor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk2_ardour/editor.cc') diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 22723fa3dc..5b4ff5044d 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5399,8 +5399,7 @@ Editor::add_stripables (StripableList& sl) */ if (!from_scratch && !new_selection.empty()) { - selection->tracks.clear(); - selection->add (new_selection); + selection->set (new_selection); begin_selection_op_history(); } -- cgit v1.2.3