From: Carl Hetherington Date: Tue, 9 Sep 2014 21:38:37 +0000 (+0100) Subject: Fix update of film content list when loading films from the command line. X-Git-Tag: v2.0.48~613 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6b05486d6d8a099c0623da2b84fb1478e842d8d5 Fix update of film content list when loading films from the command line. --- diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 991080e59..b4b9f13da 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -342,6 +342,8 @@ void ContentPanel::set_film (shared_ptr f) { _film = f; + + film_changed (Film::CONTENT); selection_changed (); } @@ -423,7 +425,7 @@ ContentPanel::setup () ContentList content = _film->content (); sort (content.begin(), content.end(), ContentSorter ()); - + for (ContentList::iterator i = content.begin(); i != content.end(); ++i) { int const t = _content->GetItemCount (); bool const valid = (*i)->paths_valid ();