From 1a6bacb1f0eaf7d9001e2113631cf79cff80d5bb Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 13 Mar 2015 04:01:55 +1100 Subject: [PATCH] Don't mess with the track selection at all from the editor route list when adding tracks (thinko in last commit). --- gtk2_ardour/editor.cc | 1 + gtk2_ardour/editor_routes.cc | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 6f2773e138..f20b24a80b 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5258,6 +5258,7 @@ Editor::add_routes (RouteList& routes) } if (!from_scratch) { + selection->tracks.clear(); selection->add (new_selection); begin_selection_op_history(); } diff --git a/gtk2_ardour/editor_routes.cc b/gtk2_ardour/editor_routes.cc index e7a49105f3..5ca5f67f42 100644 --- a/gtk2_ardour/editor_routes.cc +++ b/gtk2_ardour/editor_routes.cc @@ -637,7 +637,6 @@ EditorRoutes::routes_added (list routes) { PBD::Unwinder at (_adding_routes, true); - bool from_scratch = (_model->children().size() == 0); Gtk::TreeModel::Children::iterator insert_iter = _model->children().end(); for (Gtk::TreeModel::Children::iterator it = _model->children().begin(); it != _model->children().end(); ++it) { @@ -649,10 +648,6 @@ EditorRoutes::routes_added (list routes) } } - if(!from_scratch) { - _editor->selection->tracks.clear(); - } - DisplaySuspender ds; _display.set_model (Glib::RefPtr());