Fix update of film content list when loading films from the command line.
authorCarl Hetherington <cth@carlh.net>
Tue, 9 Sep 2014 21:38:37 +0000 (22:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 9 Sep 2014 21:38:37 +0000 (22:38 +0100)
src/wx/content_panel.cc

index 991080e590f059e123ca443333d4dd1e26b03886..b4b9f13da51f9193bff49b3eeaf5ec99e1d8d012 100644 (file)
@@ -342,6 +342,8 @@ void
 ContentPanel::set_film (shared_ptr<Film> 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 ();