summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2008-04-11 15:49:52 +0000
committerHans Baier <hansfbaier@googlemail.com>2008-04-11 15:49:52 +0000
commitaae8262a363b3d7b85b5baa3b2d0ffb07e604b73 (patch)
treef482717d2f895f3d9fb3b3f7faa5a4648c3b58d0 /gtk2_ardour/midi_region_view.h
parentcb413146428ce5db5e281d70f2b3b7df27c1aaab (diff)
* persistent undo for MIDI edits works now
* fixed bug: dragging of notes beyond left region bounds made it disappear (unsigned int wrap around) git-svn-id: svn://localhost/ardour2/branches/3.0@3249 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index e209aecb7e..c6b28c0f53 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -91,9 +91,9 @@ class MidiRegionView : public RegionView
/* This stuff is a bit boilerplatey ATM. Work in progress. */
- inline void start_delta_command() {
+ inline void start_delta_command(string name = "midi edit") {
if (!_delta_command)
- _delta_command = _model->new_delta_command();
+ _delta_command = _model->new_delta_command(name);
}
void command_add_note(const boost::shared_ptr<ARDOUR::Note> note) {