1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Revert "Preliminaries to support better interaction of undo and recording"

This reverts commit 6e75ae58ac, reversing
changes made to 714d53e00f.
This commit is contained in:
Paul Licameli
2018-01-14 21:36:33 -05:00
parent 950898dcb9
commit 4ef8da8f16
15 changed files with 192 additions and 721 deletions

View File

@@ -236,11 +236,11 @@ void UndoManager::ModifyState(const TrackList * l,
// Duplicate
auto tracksCopy = TrackList::Create();
for (auto t : *l) {
if ( t->GetId() == TrackId{} )
// Don't push a pending added track
continue;
TrackListConstIterator iter(l);
const Track *t = iter.First();
while (t) {
tracksCopy->Add(t->Duplicate());
t = iter.Next();
}
// Replace
@@ -280,11 +280,11 @@ void UndoManager::PushState(const TrackList * l,
}
auto tracksCopy = TrackList::Create();
for (auto t : *l) {
if ( t->GetId() == TrackId{} )
// Don't push a pending added track
continue;
TrackListConstIterator iter(l);
const Track *t = iter.First();
while (t) {
tracksCopy->Add(t->Duplicate());
t = iter.Next();
}
// Assume tags was duplicted before any changes.