From 92963230a796b257b65c90c376fef964a9f0510a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 16 Oct 2022 15:12:22 -0600 Subject: [PATCH] store insert-at selection in UI config variable when it is used in the add route dialog --- gtk2_ardour/add_route_dialog.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/add_route_dialog.cc b/gtk2_ardour/add_route_dialog.cc index 81528929ea..9490d1757d 100644 --- a/gtk2_ardour/add_route_dialog.cc +++ b/gtk2_ardour/add_route_dialog.cc @@ -1133,15 +1133,19 @@ AddRouteDialog::insert_at () using namespace RouteDialogs; std::string str = insert_at_combo.get_active_text(); + RouteDialogs::InsertAt choice = Last; if (str == _("First")) { - return First; + choice = First; } else if (str == _("After Selection")) { - return AfterSelection; + choice = AfterSelection; } else if (str == _("Before Selection")){ - return BeforeSelection; + choice = BeforeSelection; } - return Last; + + UIConfiguration::instance().set_insert_at_position (choice); + + return choice; } bool