diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-25 22:51:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-25 22:51:47 +0200 |
| commit | a0873f70fbc95cc45106c61e9b3c5dfda3b946f9 (patch) | |
| tree | 288cccafbf71af879aa6963fc0e0729832d89749 /src/tools | |
| parent | 9f294327cb59fce307c3a439f044d79b081376b0 (diff) | |
Try to clean up the mess of exporting subtitles when there is
one file vs many files (multiple reels or fonts).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 5c32fd487..12b8e71df 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -990,23 +990,11 @@ private: void jobs_export_subtitles () { - ExportSubtitlesDialog* d = new ExportSubtitlesDialog (this, _film->isdcf_name(true), _film->interop()); + ExportSubtitlesDialog* d = new ExportSubtitlesDialog (this, _film->reels().size(), _film->interop()); if (d->ShowModal() == wxID_OK) { - if (boost::filesystem::exists(d->path())) { - bool ok = confirm_dialog( - this, - wxString::Format (_("File %s already exists. Do you want to overwrite it?"), std_to_wx(d->path().string()).data()) - ); - - if (!ok) { - d->Destroy (); - return; - } - } - shared_ptr<TranscodeJob> job (new TranscodeJob (_film)); job->set_encoder ( - shared_ptr<SubtitleEncoder>(new SubtitleEncoder(_film, job, d->path(), d->split_reels(), d->include_font())) + shared_ptr<SubtitleEncoder>(new SubtitleEncoder(_film, job, d->path(), _film->isdcf_name(true), d->split_reels(), d->include_font())) ); JobManager::instance()->add (job); } |
