1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Bug 2240 - "Set Default" button in Metadata editor does not set the default during Export Multiple

This commit is contained in:
Leland Lucius 2020-03-23 07:36:00 -05:00
parent 7a7239f1da
commit 987aa65c8d
2 changed files with 5 additions and 3 deletions

View File

@ -103,6 +103,8 @@ class AUDACITY_DLL_API Tags final
void LoadDefaultGenres();
void LoadGenres();
void LoadDefaults();
int GetNumUserGenres();
wxString GetUserGenre(int value);
@ -124,8 +126,6 @@ class AUDACITY_DLL_API Tags final
friend bool operator == (const Tags &lhs, const Tags &rhs);
private:
void LoadDefaults();
TagMap mXref;
TagMap mMap;
@ -146,7 +146,7 @@ class TagsEditorDialog final : public wxDialogWrapper
const TranslatableString &title,
Tags * tags,
bool editTitle,
bool editTrackNumber);
bool editTrack);
virtual ~TagsEditorDialog();

View File

@ -823,6 +823,7 @@ ProgressResult ExportMultipleDialog::ExportMultipleByLabel(bool byName,
/* do the metadata for this file */
// copy project metadata to start with
setting.filetags = Tags::Get( *mProject );
setting.filetags.LoadDefaults();
// over-ride with values
setting.filetags.SetTag(TAG_TITLE, title);
setting.filetags.SetTag(TAG_TRACK, l+1);
@ -960,6 +961,7 @@ ProgressResult ExportMultipleDialog::ExportMultipleByTrack(bool byName,
/* do the metadata for this file */
// copy project metadata to start with
setting.filetags = Tags::Get( *mProject );
setting.filetags.LoadDefaults();
// over-ride with values
setting.filetags.SetTag(TAG_TITLE, title);
setting.filetags.SetTag(TAG_TRACK, l+1);