diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-31 00:44:26 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-31 00:44:26 +0000 |
commit | 97c8ad6564b90e13db6e598e6fc142f1d1f67246 (patch) | |
tree | efbfb1e7c2db92a697cac1f1297cbe518c2153f9 /gtk2_ardour/automation_line.cc | |
parent | 1f07948972ca1cac5854539268ca3b290b79c671 (diff) |
Make Clear option work for MIDI automation tracks. Fixes part of #3137.
git-svn-id: svn://localhost/ardour2/branches/3.0@7523 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 71a29af3dc..7d5ca540a8 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -1121,16 +1121,13 @@ AutomationLine::reset () void AutomationLine::clear () { - /* parent must create command */ + /* parent must create and commit command */ XMLNode &before = alist->get_state(); alist->clear(); trackview.editor().session()->add_command ( new MementoCommand<AutomationList> (memento_command_binder (), &before, &alist->get_state()) ); - - trackview.editor().session()->commit_reversible_command (); - trackview.editor().session()->set_dirty (); } void |