From 6b05486d6d8a099c0623da2b84fb1478e842d8d5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 9 Sep 2014 22:38:37 +0100 Subject: [PATCH] Fix update of film content list when loading films from the command line. --- src/wx/content_panel.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (); -- 2.30.2