diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-21 23:16:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-21 23:16:42 +0100 |
| commit | f0f4b2371ff5cd6fc39239a3c201bae0c033d21f (patch) | |
| tree | 33f19188d2a91fe6a97ff976a92347644141740d /src/lib/check_content_change_job.cc | |
| parent | ef2acd1e5a069fd5b4a332f1b1487ac55ec1a25a (diff) | |
Check content before making DCP.
Diffstat (limited to 'src/lib/check_content_change_job.cc')
| -rw-r--r-- | src/lib/check_content_change_job.cc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc index bb3674f27..783a2ac01 100644 --- a/src/lib/check_content_change_job.cc +++ b/src/lib/check_content_change_job.cc @@ -33,8 +33,9 @@ using std::list; using std::cout; using boost::shared_ptr; -CheckContentChangeJob::CheckContentChangeJob (shared_ptr<const Film> film) +CheckContentChangeJob::CheckContentChangeJob (shared_ptr<const Film> film, shared_ptr<Job> following) : Job (film) + , _following (following) { } @@ -78,10 +79,18 @@ CheckContentChangeJob::run () JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob(_film, i))); } - if (!changed.empty()) { - set_message (_("Some files were changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings.")); - } - set_progress (1); set_state (FINISHED_OK); + + if (!changed.empty()) { + string m = _("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings."); + if (_following) { + /* I'm assuming that _following is a make DCP job */ + m += " "; + m += _("Choose 'Make DCP' again when you have done this."); + } + set_message (m); + } else if (_following) { + JobManager::instance()->add (_following); + } } |
