Add a PlaylistOrderChanged signal and emit it when the playlist
[dcpomatic.git] / src / lib / film.cc
index 006cf8dca9c0a814f990fd4269fb73bfa2ac4560..20b959dd04c526e215050cf5f8af4b45c0bdc0b6 100644 (file)
@@ -135,6 +135,7 @@ Film::Film (boost::filesystem::path dir, bool log)
        set_isdcf_date_today ();
 
        _playlist_changed_connection = _playlist->Changed.connect (bind (&Film::playlist_changed, this));
+       _playlist_order_changed_connection = _playlist->OrderChanged.connect (bind (&Film::playlist_order_changed, this));
        _playlist_content_changed_connection = _playlist->ContentChanged.connect (bind (&Film::playlist_content_changed, this, _1, _2, _3));
 
        /* Make state.directory a complete path without ..s (where possible)
@@ -1092,6 +1093,12 @@ Film::playlist_changed ()
        signal_changed (NAME);
 }
 
+void
+Film::playlist_order_changed ()
+{
+       signal_changed (CONTENT_ORDER);
+}
+
 int
 Film::audio_frame_rate () const
 {