diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
| commit | cbd4450197a083bf58bda510e626f73ba583cb66 (patch) | |
| tree | 2be308772512539570beab36beab02bde72d6d4b /src/wx/content_panel.cc | |
| parent | 1013175d5f6adfa0e6a7442e4c9aebb893787748 (diff) | |
Basics of multiple captions per content so that DCPContent can
hold subs and closed captions.
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 5a4873716..40501f717 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -196,7 +196,7 @@ ContentPanel::selected_caption () ContentList sc; BOOST_FOREACH (shared_ptr<Content> i, selected ()) { - if (i->caption) { + if (!i->caption.empty()) { sc.push_back (i); } } @@ -447,7 +447,7 @@ ContentPanel::setup_sensitivity () _video_panel->Enable (_generally_sensitive && video_selection.size() > 0); _audio_panel->Enable (_generally_sensitive && audio_selection.size() > 0); - _caption_panel->Enable (_generally_sensitive && selection.size() == 1 && selection.front()->caption); + _caption_panel->Enable (_generally_sensitive && selection.size() == 1 && !selection.front()->caption.empty()); _timing_panel->Enable (_generally_sensitive); } |
