From 49e1dd23b699b499d9b715ef74cb7ca5b0189584 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 31 Aug 2013 17:11:17 +0200 Subject: - mod list can now be sorted by install time - the sorting of download archives wasn't actually by index instead of file time - bugfix: some of the plugins crashed if they failed to create a mod --- src/modlistsortproxy.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modlistsortproxy.cpp') diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 829140b0..37509b12 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -164,6 +164,9 @@ bool ModListSortProxy::lessThan(const QModelIndex &left, return leftPrio.toInt() < rightPrio.toInt(); } break; + case ModList::COL_INSTALLTIME: { + return left.data().toDateTime() < right.data().toDateTime(); + } break; } return lt; } -- cgit v1.3.1