mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
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:
parent
d8e93be2ee
commit
fe229a830e
12 changed files with 118 additions and 65 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue