1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00

AUP3: Added AUP3 importer and improved progress dialogs

This commit is contained in:
Leland Lucius
2020-07-15 01:32:48 -05:00
parent 1ec7fd56c1
commit 5bc3ae659c
10 changed files with 574 additions and 194 deletions

View File

@@ -334,13 +334,17 @@ ProgressResult AUPImportFileHandle::Import(TrackFactory *WXUNUSED(trackFactory),
return mUpdateResult;
}
// Copy the tracks we just created into the project.
for (auto &track : mTracks)
{
tracks.Add(track);
}
// Don't need our local track list anymore
mTracks.clear();
// If the active project is "dirty", then bypass the below updates as we don't
// want to going changing things the user may have already set up.
if (isDirty)
{
return mUpdateResult;
@@ -803,6 +807,7 @@ bool AUPImportFileHandle::HandleProject(XMLTagHandler *&handler)
{
set(bandwidthformat, strValue);
}
#undef set
}
if (requiredTags < 3)