store insert-at selection in UI config variable when it is used in the add route dialog

This commit is contained in:
Paul Davis 2022-10-16 15:12:22 -06:00
parent 23010a910d
commit 92963230a7
1 changed files with 8 additions and 4 deletions

View File

@ -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