mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Merged with trunk R776
git-svn-id: svn://localhost/ardour2/branches/midi@777 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
38c7d34d8c
commit
ab6f1ed9ba
110 changed files with 7360 additions and 785 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <pbd/convert.h>
|
||||
#include <pbd/error.h>
|
||||
#include <pbd/memento_command.h>
|
||||
|
||||
#include <gtkmm/image.h>
|
||||
#include <gdkmm/color.h>
|
||||
|
|
@ -2878,8 +2879,8 @@ void
|
|||
Editor::begin_reversible_command (string name)
|
||||
{
|
||||
if (session) {
|
||||
UndoAction ua = get_memento();
|
||||
session->begin_reversible_command (name, &ua);
|
||||
before = &get_state();
|
||||
session->begin_reversible_command (name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2887,8 +2888,7 @@ void
|
|||
Editor::commit_reversible_command ()
|
||||
{
|
||||
if (session) {
|
||||
UndoAction ua = get_memento();
|
||||
session->commit_reversible_command (&ua);
|
||||
session->commit_reversible_command (new MementoCommand<Editor>(*this, *before, get_state()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue