Fix #356
This commit is contained in:
parent
0d4046de39
commit
6a8984a21d
@ -64,7 +64,7 @@ static bool cmpVersions(BaseVersionPtr first, BaseVersionPtr second)
|
|||||||
void LiteLoaderVersionList::sort()
|
void LiteLoaderVersionList::sort()
|
||||||
{
|
{
|
||||||
beginResetModel();
|
beginResetModel();
|
||||||
qSort(m_vlist.begin(), m_vlist.end(), cmpVersions);
|
std::sort(m_vlist.begin(), m_vlist.end(), cmpVersions);
|
||||||
endResetModel();
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ void LiteLoaderVersionList::updateListData(QList<BaseVersionPtr> versions)
|
|||||||
beginResetModel();
|
beginResetModel();
|
||||||
m_vlist = versions;
|
m_vlist = versions;
|
||||||
m_loaded = true;
|
m_loaded = true;
|
||||||
qSort(m_vlist.begin(), m_vlist.end(), cmpVersions);
|
std::sort(m_vlist.begin(), m_vlist.end(), cmpVersions);
|
||||||
endResetModel();
|
endResetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,7 +199,7 @@ void LLListLoadTask::listDownloaded()
|
|||||||
version->file = artefact.value("file").toString();
|
version->file = artefact.value("file").toString();
|
||||||
version->mcVersion = mcVersion;
|
version->mcVersion = mcVersion;
|
||||||
version->md5 = artefact.value("md5").toString();
|
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->tweakClass = artefact.value("tweakClass").toString();
|
||||||
version->authors = authors;
|
version->authors = authors;
|
||||||
version->description = description;
|
version->description = description;
|
||||||
|
Loading…
Reference in New Issue
Block a user