summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-09 00:10:00 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-09 00:10:00 +0100
commit5b603c88793733177301f5d62c4181ebf6f91cf2 (patch)
tree02a3090df93d365a6b402432446505ac682e9003 /src
parente890b518fe2b491c3ce2ebe4900ec4eb48b336e4 (diff)
Fix error on loading projects with missing text subtitle files.
Diffstat (limited to 'src')
-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 6bcffd377..127dba7fa 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.
*/