Fix could-not-load-film error when loading a project with a missing subtitle file.
authorCarl Hetherington <cth@carlh.net>
Fri, 6 Jul 2018 19:49:33 +0000 (20:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 6 Jul 2018 19:49:33 +0000 (20:49 +0100)
src/wx/content_panel.cc

index 1680e5926b2a8d36e223401391199e43eee2c93b..4adeb90a4e610b096b22112be778f68da1c52fe3 100644 (file)
@@ -258,7 +258,7 @@ ContentPanel::selection_changed ()
        BOOST_FOREACH (shared_ptr<Content> i, selected ()) {
                DCPTime p;
                p = i->position();
-               if (dynamic_pointer_cast<TextSubtitleContent>(i)) {
+               if (dynamic_pointer_cast<TextSubtitleContent>(i) && i->paths_valid()) {
                        /* Rather special case; if we select a text subtitle file jump to its
                           first subtitle.
                        */