diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-11-13 18:29:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 18:29:53 +0100 |
| commit | 88d2d7b9185bf7b8b776a87ef21deaa503a72581 (patch) | |
| tree | e4d80b4dc60e94d5890e68efba81dc4968925be9 /src/mainwindow.cpp | |
| parent | 85f515da2d1713bc208d2f1bca4197b91950528a (diff) | |
| parent | e99b05f20db989e1d682841c25748227808dfa21 (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.cpp | 2 |
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) { |
