summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-11-13 18:27:33 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-11-13 18:27:33 +0100
commite99b05f20db989e1d682841c25748227808dfa21 (patch)
treee4d80b4dc60e94d5890e68efba81dc4968925be9 /src/mainwindow.cpp
parent85f515da2d1713bc208d2f1bca4197b91950528a (diff)
Fix order of saves.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 94bc5800..f7714392 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1963,7 +1963,7 @@ void MainWindow::refreshSaveList()
files.append(it.fileInfo());
}
std::sort(files.begin(), files.end(), [](auto const& lhs, auto const& rhs) {
- return lhs.fileTime(QFileDevice::FileModificationTime) < rhs.fileTime(QFileDevice::FileModificationTime);
+ return lhs.fileTime(QFileDevice::FileModificationTime) > rhs.fileTime(QFileDevice::FileModificationTime);
});
for (const QFileInfo &file : files) {