X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkdm_cpl_panel.cc;h=8b4d93129dcd7d7a84e677a64748ea2f722ebb6e;hb=4e841ab275143ecbd8790c39ed332e5e346733f8;hp=4151f84a7b252adbb69a4ff123cef3b0bdc900d5;hpb=fdc416faa317106d05be8fe5226ded84d8347d99;p=dcpomatic.git diff --git a/src/wx/kdm_cpl_panel.cc b/src/wx/kdm_cpl_panel.cc index 4151f84a7..8b4d93129 100644 --- a/src/wx/kdm_cpl_panel.cc +++ b/src/wx/kdm_cpl_panel.cc @@ -128,6 +128,10 @@ KDMCPLPanel::cpl_browse_clicked () 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 ( @@ -135,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; }