summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2020-11-13 18:29:53 +0100
committerGitHub <noreply@github.com>2020-11-13 18:29:53 +0100
commit88d2d7b9185bf7b8b776a87ef21deaa503a72581 (patch)
treee4d80b4dc60e94d5890e68efba81dc4968925be9 /src/mainwindow.cpp
parent85f515da2d1713bc208d2f1bca4197b91950528a (diff)
parente99b05f20db989e1d682841c25748227808dfa21 (diff)
Merge pull request #1295 from Holt59/fix-order-of-saves
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) {