mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
store insert-at selection in UI config variable when it is used in the add route dialog
This commit is contained in:
parent
23010a910d
commit
92963230a7
1 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue