diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-11 01:51:07 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-11 01:51:07 +0200 |
commit | 6a8984a21d5ab7b20821c8c6624e135c1a4c9e34 (patch) | |
tree | 60705892736a22e04c93fb30b87b89836e326311 | |
parent | 0d4046de3904e7dfd190a05218e357e93dc8d058 (diff) | |
download | MultiMC-6a8984a21d5ab7b20821c8c6624e135c1a4c9e34.tar MultiMC-6a8984a21d5ab7b20821c8c6624e135c1a4c9e34.tar.gz MultiMC-6a8984a21d5ab7b20821c8c6624e135c1a4c9e34.tar.lz MultiMC-6a8984a21d5ab7b20821c8c6624e135c1a4c9e34.tar.xz MultiMC-6a8984a21d5ab7b20821c8c6624e135c1a4c9e34.zip |
Fix #356
-rw-r--r-- | logic/liteloader/LiteLoaderVersionList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/liteloader/LiteLoaderVersionList.cpp b/logic/liteloader/LiteLoaderVersionList.cpp index 83c34efe..eced78e9 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<BaseVersionPtr> 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; |