mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Bug 1833 - Stop in Export Multiple does not actually stop the exports
This commit is contained in:
parent
440e3f8ff2
commit
7a7239f1da
@ -865,7 +865,18 @@ ProgressResult ExportMultipleDialog::ExportMultipleByLabel(bool byName,
|
|||||||
// Export it
|
// Export it
|
||||||
ok = DoExport(pDialog, channels, activeSetting.destfile, false,
|
ok = DoExport(pDialog, channels, activeSetting.destfile, false,
|
||||||
activeSetting.t0, activeSetting.t1, activeSetting.filetags);
|
activeSetting.t0, activeSetting.t1, activeSetting.filetags);
|
||||||
if (ok != ProgressResult::Success && ok != ProgressResult::Stopped) {
|
if (ok == ProgressResult::Stopped) {
|
||||||
|
AudacityMessageDialog dlgMessage(
|
||||||
|
nullptr,
|
||||||
|
XO("Continue to export remaining files?"),
|
||||||
|
XO("Export"),
|
||||||
|
wxYES_NO | wxNO_DEFAULT | wxICON_WARNING);
|
||||||
|
if (dlgMessage.ShowModal() != wxID_YES ) {
|
||||||
|
// User decided not to continue - bail out!
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (ok != ProgressResult::Success) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1000,9 +1011,18 @@ ProgressResult ExportMultipleDialog::ExportMultipleByTrack(bool byName,
|
|||||||
ok = DoExport(pDialog,
|
ok = DoExport(pDialog,
|
||||||
activeSetting.channels, activeSetting.destfile, true,
|
activeSetting.channels, activeSetting.destfile, true,
|
||||||
activeSetting.t0, activeSetting.t1, activeSetting.filetags);
|
activeSetting.t0, activeSetting.t1, activeSetting.filetags);
|
||||||
|
if (ok == ProgressResult::Stopped) {
|
||||||
// Stop if an error occurred
|
AudacityMessageDialog dlgMessage(
|
||||||
if (ok != ProgressResult::Success && ok != ProgressResult::Stopped) {
|
nullptr,
|
||||||
|
XO("Continue to export remaining files?"),
|
||||||
|
XO("Export"),
|
||||||
|
wxYES_NO | wxNO_DEFAULT | wxICON_WARNING);
|
||||||
|
if (dlgMessage.ShowModal() != wxID_YES ) {
|
||||||
|
// User decided not to continue - bail out!
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (ok != ProgressResult::Success) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// increment export counter
|
// increment export counter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user