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 commit6e75ae58ac, reversing changes made to714d53e00f.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user