From: Carl Hetherington Date: Fri, 6 Jul 2018 19:49:33 +0000 (+0100) Subject: Fix could-not-load-film error when loading a project with a missing subtitle file. X-Git-Tag: v2.13.34~2 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=faab327a3846fe1d06850ce03d8e29e30147e6b9 Fix could-not-load-film error when loading a project with a missing subtitle file. --- diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 1680e5926..4adeb90a4 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -258,7 +258,7 @@ ContentPanel::selection_changed () BOOST_FOREACH (shared_ptr i, selected ()) { DCPTime p; p = i->position(); - if (dynamic_pointer_cast(i)) { + if (dynamic_pointer_cast(i) && i->paths_valid()) { /* Rather special case; if we select a text subtitle file jump to its first subtitle. */