diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-23 00:27:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-24 10:01:52 +0100 |
| commit | df28b0e939bd0f12ae31e6f7ba94fa954496b3b8 (patch) | |
| tree | 9dcdf8708fe678fc1419e90dc6fdc3f8da8fafb2 /src/wx/content_panel.cc | |
| parent | 2f1d460898f40844d47d6a3b858449ac09d8b342 (diff) | |
Allow import of OV/VF DCPs (#906).
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index 73866fa59..1d9f010bf 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -498,7 +498,8 @@ ContentPanel::setup () int const t = _content->GetItemCount (); bool const valid = i->paths_valid (); shared_ptr<DCPContent> dcp = dynamic_pointer_cast<DCPContent> (i); - bool const needs_kdm = dcp && !dcp->can_be_played (); + bool const needs_kdm = dcp && dcp->needs_kdm (); + bool const needs_assets = dcp && dcp->needs_assets (); string s = i->summary (); @@ -510,6 +511,10 @@ ContentPanel::setup () s = _("NEEDS KDM: ") + s; } + if (needs_assets) { + s = _("NEEDS OV: ") + s; + } + wxListItem item; item.SetId (t); item.SetText (std_to_wx (s)); @@ -520,7 +525,7 @@ ContentPanel::setup () _content->SetItemState (t, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED); } - if (!valid || needs_kdm) { + if (!valid || needs_kdm || needs_assets) { _content->SetItemTextColour (t, *wxRED); } } |
