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
This commit is contained in:
Paul Davis 2010-06-24 01:37:24 +00:00
parent d8e93be2ee
commit fe229a830e
12 changed files with 118 additions and 65 deletions

View file

@ -47,6 +47,7 @@ UndoTransaction::UndoTransaction (const UndoTransaction& rhs)
UndoTransaction::~UndoTransaction ()
{
cerr << "UndoTransaction destroyed\n";
drop_references ();
clear ();
}
@ -54,6 +55,8 @@ UndoTransaction::~UndoTransaction ()
void
command_death (UndoTransaction* ut, Command* c)
{
cerr << "Command drop ref\n";
if (ut->clearing()) {
return;
}