X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_cpl_panel.cc;h=8b4d93129dcd7d7a84e677a64748ea2f722ebb6e;hb=ea6b2dae46caa1da829fbf499e83cd6ae3b3773a;hp=341b5f764e842cde082e41a83040cf3a9b5c2eaa;hpb=835fd0fd7ee052edc001ac8fe3c928d1de7367e8;p=dcpomatic.git diff --git a/src/wx/kdm_cpl_panel.cc b/src/wx/kdm_cpl_panel.cc index 341b5f764..8b4d93129 100644 --- a/src/wx/kdm_cpl_panel.cc +++ b/src/wx/kdm_cpl_panel.cc @@ -124,11 +124,14 @@ KDMCPLPanel::cpl_browse_clicked () } if (!encrypted) { - /* XXX: this needs to be marked translatable after 2.14.0 */ - error_dialog (this, wxT("This CPL contains no encrypted assets.")); + error_dialog (this, _("This CPL contains no encrypted assets.")); return; } + /* We're ignoring the CPLSummary timestamp stuff here and just putting the new one in at the end + of the list, then selecting it. + */ + try { _cpls.push_back ( CPLSummary ( @@ -136,10 +139,11 @@ KDMCPLPanel::cpl_browse_clicked () cpl_document.string_child("Id").substr (9), cpl_document.string_child("ContentTitleText"), cpl_file, - encrypted + encrypted, + 0 ) ); - } catch (cxml::Error) { + } catch (cxml::Error &) { error_dialog (this, _("This is not a valid CPL file")); return; }