X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplaylist.cc;h=48053bbf485aa893ddd903646ee911baaba05bdc;hb=8f8730cadb3dae36e8aa7b7c732a7c162eac0fb6;hp=9e96c693a529679b197ae66e0ba6c67d8a2fc248;hpb=c4403784febdbdd42e9c32e67fadb147f11fe566;p=dcpomatic.git diff --git a/src/lib/playlist.cc b/src/lib/playlist.cc index 9e96c693a..48053bbf4 100644 --- a/src/lib/playlist.cc +++ b/src/lib/playlist.cc @@ -111,8 +111,11 @@ Playlist::content_change (weak_ptr weak_film, ChangeType type, weak_ } if (changed) { - OrderChanged (); + OrderChange (); } + + /* The length might have changed, and that's good enough for this signal */ + LengthChange (); } } @@ -281,6 +284,8 @@ Playlist::add (shared_ptr film, shared_ptr c) } Change (CHANGE_TYPE_DONE); + + LengthChange (); } void @@ -312,6 +317,8 @@ Playlist::remove (shared_ptr c) } /* This won't change order, so it does not need a sort */ + + LengthChange (); } void @@ -334,9 +341,11 @@ Playlist::remove (ContentList c) } } + Change (CHANGE_TYPE_DONE); + /* This won't change order, so it does not need a sort */ - Change (CHANGE_TYPE_DONE); + LengthChange (); } class FrameRateCandidate