summaryrefslogtreecommitdiff
path: root/src/modlistsortproxy.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-08-31 17:11:17 +0200
committerTannin <devnull@localhost>2013-08-31 17:11:17 +0200
commit49e1dd23b699b499d9b715ef74cb7ca5b0189584 (patch)
tree2ab470822b369a38c8d2dad1d52f584107e14137 /src/modlistsortproxy.cpp
parent9c31cfa915f71adee8579aa97c12b64903ec9446 (diff)
- 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
Diffstat (limited to 'src/modlistsortproxy.cpp')
-rw-r--r--src/modlistsortproxy.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}