X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcheck_content_change_job.cc;h=468933ae496169a1601672bb527db6a01bdad4a3;hb=25043fac5a810cc7d906f1b3d88d0ae90f2a2299;hp=bb3674f27b42471fa1518f04abd8508ae7a1db9d;hpb=f30bd5d2355bc02d1b5c7772241e191b60028dd2;p=dcpomatic.git diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc index bb3674f27..468933ae4 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 film) +CheckContentChangeJob::CheckContentChangeJob (shared_ptr film, shared_ptr following) : Job (film) + , _following (following) { } @@ -42,7 +43,7 @@ CheckContentChangeJob::CheckContentChangeJob (shared_ptr film) string CheckContentChangeJob::name () const { - return _("Check content for changes"); + return _("Checking content for changes"); } string @@ -78,10 +79,18 @@ CheckContentChangeJob::run () JobManager::instance()->add(shared_ptr(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); + } }