diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 01:37:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-24 01:37:24 +0000 |
commit | fe229a830e0164e56d3aceaf3d539e4148f322a6 (patch) | |
tree | b7ce8899512827698931a9d34ae766e5d4aac710 /libs/pbd/undo.cc | |
parent | d8e93be2ee68fc6a18a7ca17d36ffc67c94207b3 (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/pbd/undo.cc')
-rw-r--r-- | libs/pbd/undo.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/pbd/undo.cc b/libs/pbd/undo.cc index 120f62c351..71a5d1e263 100644 --- a/libs/pbd/undo.cc +++ b/libs/pbd/undo.cc @@ -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; } |