summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/text_panel.cc')
-rw-r--r--src/wx/text_panel.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index b5adf551e..a9f2f91f1 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -255,7 +255,12 @@ TextPanel::update_dcp_tracks ()
{
_dcp_track->Clear ();
BOOST_FOREACH (DCPTextTrack i, _parent->film()->closed_caption_tracks()) {
- _dcp_track->Append (std_to_wx(i.summary()));
+ /* XXX: don't display the "magic" track which has empty name and language;
+ this is a nasty hack (see also Film::closed_caption_tracks)
+ */
+ if (!i.name.empty() || !i.language.empty()) {
+ _dcp_track->Append (std_to_wx(i.summary()));
+ }
}
if (_parent->film()->closed_caption_tracks().size() < 6) {