diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-19 17:07:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | 86a866d5f3f5bf2fec67d1c813524479c6727eab (patch) | |
| tree | d6399fb66872751ed10a0c2db0e143dea32c627e /src/lib/film.cc | |
| parent | 046d84f45621f7e128cb30160a315f98881c6f4b (diff) | |
Clean up access to stuff from Film.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 2a50e8c81..aa71834a1 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -169,6 +169,7 @@ Film::Film (optional<boost::filesystem::path> dir) _playlist_change_connection = _playlist->Change.connect (bind (&Film::playlist_change, this, _1)); _playlist_order_changed_connection = _playlist->OrderChanged.connect (bind (&Film::playlist_order_changed, this)); _playlist_content_change_connection = _playlist->ContentChange.connect (bind (&Film::playlist_content_change, this, _1, _2, _3, _4)); + _playlist_length_change_connection = _playlist->LengthChange.connect (bind(&Film::playlist_length_change, this)); if (dir) { /* Make state.directory a complete path without ..s (where possible) @@ -1293,6 +1294,12 @@ Film::playlist_content_change (ChangeType type, weak_ptr<Content> c, int p, bool } void +Film::playlist_length_change () +{ + LengthChange (); +} + +void Film::playlist_change (ChangeType type) { signal_change (type, CONTENT); |
