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 1680e59..4adeb90 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.
                        */