diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 17:35:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 01:44:15 +0200 |
| commit | 04f8ba59d17e726570b4c1f361f10c7548fbe5c2 (patch) | |
| tree | 921748170f4c000d5c7bd5ce3440bbfb149e3c08 /src/lib/film.cc | |
| parent | 3cbc5434edfd0eff96d4e25313d1dfcde478070c (diff) | |
Put * in the title bar when the DCP-o-matic project is modified (#1938).
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 1ea03a8d9..e49b7f78e 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -482,7 +482,7 @@ Film::write_metadata (boost::filesystem::path path) const /** Write state to our `metadata' file */ void -Film::write_metadata () const +Film::write_metadata () { DCPOMATIC_ASSERT (directory()); boost::filesystem::create_directories (directory().get()); @@ -2178,8 +2178,12 @@ Film::set_sign_language_video_language (optional<dcp::LanguageTag> lang) void -Film::set_dirty (bool dirty) const +Film::set_dirty (bool dirty) { + auto const changed = dirty != _dirty; _dirty = dirty; + if (changed) { + emit (boost::bind(boost::ref(DirtyChange), _dirty)); + } } |
