summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-24 01:37:24 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-24 01:37:24 +0000
commitfe229a830e0164e56d3aceaf3d539e4148f322a6 (patch)
treeb7ce8899512827698931a9d34ae766e5d4aac710 /libs/ardour/session_state.cc
parentd8e93be2ee68fc6a18a7ca17d36ffc67c94207b3 (diff)
GUI-created MIDI regions now steal the pending MIDISource from the track's diskstream, to keep numbering sane; don't create any new MIDI regions if capture collected no data (fixes a crash in my previous commit, and is just logically much more sensible
git-svn-id: svn://localhost/ardour2/branches/3.0@7295 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r--libs/ardour/session_state.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index bcb4f3094f..f26933d875 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -2333,6 +2333,8 @@ Session::commit_reversible_command(Command *cmd)
gettimeofday(&now, 0);
_current_trans.top()->set_timestamp(now);
+ cerr << "add cmd @ " << _current_trans.top() << " to history\n";
+
_history.add(_current_trans.top());
_current_trans.pop();
}