From 6a8984a21d5ab7b20821c8c6624e135c1a4c9e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 11 Jul 2014 01:51:07 +0200 Subject: [PATCH] Fix #356 --- logic/liteloader/LiteLoaderVersionList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logic/liteloader/LiteLoaderVersionList.cpp b/logic/liteloader/LiteLoaderVersionList.cpp index 83c34efe1..eced78e97 100644 --- a/logic/liteloader/LiteLoaderVersionList.cpp +++ b/logic/liteloader/LiteLoaderVersionList.cpp @@ -64,7 +64,7 @@ static bool cmpVersions(BaseVersionPtr first, BaseVersionPtr second) void LiteLoaderVersionList::sort() { beginResetModel(); - qSort(m_vlist.begin(), m_vlist.end(), cmpVersions); + std::sort(m_vlist.begin(), m_vlist.end(), cmpVersions); endResetModel(); } @@ -86,7 +86,7 @@ void LiteLoaderVersionList::updateListData(QList versions) beginResetModel(); m_vlist = versions; m_loaded = true; - qSort(m_vlist.begin(), m_vlist.end(), cmpVersions); + std::sort(m_vlist.begin(), m_vlist.end(), cmpVersions); endResetModel(); } @@ -199,7 +199,7 @@ void LLListLoadTask::listDownloaded() version->file = artefact.value("file").toString(); version->mcVersion = mcVersion; version->md5 = artefact.value("md5").toString(); - version->timestamp = artefact.value("timestamp").toDouble(); + version->timestamp = artefact.value("timestamp").toString().toInt(); version->tweakClass = artefact.value("tweakClass").toString(); version->authors = authors; version->description = description;