Sort KDM CPL list in reverse timestamp order (#1496).
[dcpomatic.git] / src / wx / kdm_cpl_panel.cc
index 4151f84a7b252adbb69a4ff123cef3b0bdc900d5..967fb28457e98800aea5997ac3bdcd45b35affde 100644 (file)
@@ -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,7 +139,8 @@ KDMCPLPanel::cpl_browse_clicked ()
                                cpl_document.string_child("Id").substr (9),
                                cpl_document.string_child("ContentTitleText"),
                                cpl_file,
-                               encrypted
+                               encrypted,
+                               0
                                )
                        );
        } catch (cxml::Error) {