mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Generate undo record for crossfade edits, and provide signalling to update the view when such things are undone. Partially fixes #3257.
git-svn-id: svn://localhost/ardour2/branches/3.0@7309 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c8e07653da
commit
ed19559ece
6 changed files with 21 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include <libgnomecanvasmm/line.h>
|
||||
|
||||
#include "pbd/memento_command.h"
|
||||
#include "ardour/automation_list.h"
|
||||
#include "evoral/Curve.hpp"
|
||||
#include "ardour/crossfade.h"
|
||||
|
|
@ -783,7 +784,14 @@ CrossfadeEditor::apply_preset (Preset *preset)
|
|||
void
|
||||
CrossfadeEditor::apply ()
|
||||
{
|
||||
_session->begin_reversible_command (_("Edit crossfade"));
|
||||
|
||||
XMLNode& before = xfade->get_state ();
|
||||
|
||||
_apply_to (xfade);
|
||||
|
||||
_session->add_command (new MementoCommand<Crossfade> (*xfade.get(), &before, &xfade->get_state()));
|
||||
_session->commit_reversible_command ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue