mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 17:11:12 +02:00
Bugzilla:72 Blank labels continue to give 'untitled' in files after the first.
This commit is contained in:
@@ -648,6 +648,9 @@ int ExportMultiple::ExportMultipleByLabel(bool byName,
|
||||
setting.t1 = mTracks->GetEndTime();
|
||||
}
|
||||
|
||||
if( name.IsEmpty() )
|
||||
name = _("untitled");
|
||||
|
||||
// store title of label to use in tags
|
||||
title = name;
|
||||
|
||||
@@ -780,6 +783,9 @@ int ExportMultiple::ExportMultipleByTrack(bool byName,
|
||||
|
||||
// Get name and title
|
||||
title = tr->GetName();
|
||||
if( title.IsEmpty() )
|
||||
title = _("untitled");
|
||||
|
||||
if (byName) {
|
||||
name = title;
|
||||
if (addNumber) {
|
||||
@@ -882,10 +888,6 @@ int ExportMultiple::DoExport(int channels,
|
||||
if (selectedOnly) wxLogDebug(wxT("Selected Region Only"));
|
||||
else wxLogDebug(wxT("Whole Project"));
|
||||
|
||||
if (name.GetName().IsEmpty()) {
|
||||
name.SetName(wxT("untitled"));
|
||||
}
|
||||
|
||||
if (mOverwrite->GetValue()) {
|
||||
// Make sure we don't overwrite (corrupt) alias files
|
||||
if (!mProject->GetDirManager()->EnsureSafeFilename(name)) {
|
||||
|
Reference in New Issue
Block a user