summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-06 20:49:33 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-06 20:49:33 +0100
commitfaab327a3846fe1d06850ce03d8e29e30147e6b9 (patch)
tree7aca6c912c9bab89c37ad8445ced4bd703dd8e4f
parent6654f028571db33d1e203ff36f85619d03a9f9fb (diff)
Fix could-not-load-film error when loading a project with a missing subtitle file.
-rw-r--r--src/wx/content_panel.cc2
1 files changed, 1 insertions, 1 deletions
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<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.
*/