summaryrefslogtreecommitdiff
path: root/src/wx/kdm_cpl_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-25 00:30:19 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-25 00:30:19 +0000
commit74873babf8ed3ffb3dd79858328d5b3f142479a3 (patch)
treef245c33a609ac914f183e7031d20abf18f40d518 /src/wx/kdm_cpl_panel.cc
parent25c15064f4c816d310c34e2e27092b3c2d02afb3 (diff)
Sort KDM CPL list in reverse timestamp order (#1496).
Diffstat (limited to 'src/wx/kdm_cpl_panel.cc')
-rw-r--r--src/wx/kdm_cpl_panel.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/kdm_cpl_panel.cc b/src/wx/kdm_cpl_panel.cc
index 4151f84a7..967fb2845 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,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) {