Fix error on loading projects with missing text subtitle files.
authorCarl Hetherington <cth@carlh.net>
Sat, 8 Sep 2018 23:10:00 +0000 (00:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 8 Sep 2018 23:10:00 +0000 (00:10 +0100)
src/wx/content_panel.cc

index 6bcffd37772ecf44d724200ca1ee86514f16c73d..127dba7faf40f987292528bdddfd0b81aed20821 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.
                        */