From: Carl Hetherington Date: Tue, 21 Aug 2018 22:16:34 +0000 (+0100) Subject: Reset last write times on examine. X-Git-Tag: v2.13.45~29 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ef2acd1e5a069fd5b4a332f1b1487ac55ec1a25a Reset last write times on examine. --- diff --git a/src/lib/content.cc b/src/lib/content.cc index 69dcbc139..c2cb7e005 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -194,6 +194,11 @@ Content::examine (shared_ptr job) boost::mutex::scoped_lock lm (_mutex); _digest = d; + + _last_write_times.clear (); + BOOST_FOREACH (boost::filesystem::path i, _paths) { + _last_write_times.push_back (boost::filesystem::last_write_time(i)); + } } void