diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:18:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-15 12:18:10 +0000 |
| commit | 835fd0fd7ee052edc001ac8fe3c928d1de7367e8 (patch) | |
| tree | 798d50a74ee1a6bf22b11467517aa97dce609609 /src/wx/kdm_dialog.cc | |
| parent | dc864b775198d3378bd77031ad4750bf49e93b6b (diff) | |
Don't offer to make KDMs for CPLs with no encrypted assets (#1490).
Diffstat (limited to 'src/wx/kdm_dialog.cc')
| -rw-r--r-- | src/wx/kdm_dialog.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index c31e6f643..920f54a3e 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -87,7 +87,15 @@ KDMDialog::KDMDialog (wxWindow* parent, shared_ptr<const Film> film) h = new StaticText (this, _("CPL")); h->SetFont (subheading_font); right->Add (h, 0, wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_Y_GAP * 2); - _cpl = new KDMCPLPanel (this, film->cpls ()); + + vector<CPLSummary> cpls; + BOOST_FOREACH (CPLSummary const & i, film->cpls()) { + if (i.encrypted) { + cpls.push_back (i); + } + } + + _cpl = new KDMCPLPanel (this, cpls); right->Add (_cpl, 0, wxEXPAND); /* Sub-heading: Output */ |
