diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-14 00:10:44 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-14 00:10:44 +0200 |
| commit | 0880ffd9eee7630fabc320024e6b293fb98b7b65 (patch) | |
| tree | 4b580728db2dc6508a730c20a3eb59d398aa58b1 | |
| parent | a18b0938868b32b88007539917eba8193253f442 (diff) | |
Fix a couple of causes of films being marked dirty straight after loading.
| -rw-r--r-- | src/lib/film.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 174b3ce83..06be5bf1e 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -216,7 +216,7 @@ Film::Film (optional<boost::filesystem::path> dir) _playlist_length_change_connection = _playlist->LengthChange.connect (bind(&Film::playlist_length_change, this)); if (dir) { - set_directory(dcp::filesystem::weakly_canonical(*dir)); + _directory = dcp::filesystem::weakly_canonical(*dir); } if (_directory) { @@ -1134,6 +1134,10 @@ Film::set_directory (boost::filesystem::path d) void Film::set_name (string n) { + if (_name == n) { + return; + } + FilmChangeSignaller ch(this, FilmProperty::NAME); _name = n; } |
