add undo for changing marker lock style from menu
This commit is contained in:
parent
1e397a83ad
commit
0938b6a9c1
@ -1693,11 +1693,18 @@ Editor::toggle_marker_menu_glue ()
|
||||
return;
|
||||
}
|
||||
|
||||
begin_reversible_command (_("change marker lock style"));
|
||||
XMLNode &before = _session->locations()->get_state();
|
||||
|
||||
if (loc->position_lock_style() == MusicTime) {
|
||||
loc->set_position_lock_style (AudioTime);
|
||||
} else {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user