mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
add undo for changing marker lock style from menu
This commit is contained in:
parent
1e397a83ad
commit
0938b6a9c1
1 changed files with 7 additions and 0 deletions
|
|
@ -1693,11 +1693,18 @@ Editor::toggle_marker_menu_glue ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
begin_reversible_command (_("change marker lock style"));
|
||||||
|
XMLNode &before = _session->locations()->get_state();
|
||||||
|
|
||||||
if (loc->position_lock_style() == MusicTime) {
|
if (loc->position_lock_style() == MusicTime) {
|
||||||
loc->set_position_lock_style (AudioTime);
|
loc->set_position_lock_style (AudioTime);
|
||||||
} else {
|
} else {
|
||||||
loc->set_position_lock_style (MusicTime);
|
loc->set_position_lock_style (MusicTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XMLNode &after = _session->locations()->get_state();
|
||||||
|
_session->add_command(new MementoCommand<Locations>(*(_session->locations()), &before, &after));
|
||||||
|
commit_reversible_command ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue