diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-04 21:39:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-04 21:39:10 +0200 |
| commit | ebce2111f20e6b9cbd00ce8ec7e72c68cf176c29 (patch) | |
| tree | 1dd346c3cd690d9ef0bbd32246c18e919fa7f591 | |
| parent | 641e7622ac98f6e28e82ac2ebb335f278a9120f8 (diff) | |
Only add ExamineContentJobs after a failed CheckContentChangeJob
if we are in the GUI. In the CLI client we will give up if the
CheckContentChangeJob fails, and immediately destroy the job manager
which doesn't end well if we have jobs running at the time.
| -rw-r--r-- | src/lib/check_content_change_job.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/check_content_change_job.cc b/src/lib/check_content_change_job.cc index 1df3bc9cd..644e730bb 100644 --- a/src/lib/check_content_change_job.cc +++ b/src/lib/check_content_change_job.cc @@ -82,12 +82,11 @@ CheckContentChangeJob::run () } } - BOOST_FOREACH (shared_ptr<Content> i, changed) { - JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob(_film, i))); - } - if (!changed.empty()) { if (_gui) { + BOOST_FOREACH (shared_ptr<Content> i, changed) { + JobManager::instance()->add(shared_ptr<Job>(new ExamineContentJob(_film, i))); + } 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 */ |
