mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
The default selected version is now the current stable version.
Resolves JIRA issue MMC-10: https://jira.forkk.net/browse/MMC-10
This commit is contained in:
parent
7e3592bee8
commit
fb0432bf0b
4 changed files with 15 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ const InstVersion *InstVersionList::findVersion(const QString &descriptor)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
const InstVersion *InstVersionList::getLatestStable()
|
||||
const InstVersion *InstVersionList::getLatestStable() const
|
||||
{
|
||||
if (count() <= 0)
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -92,6 +92,17 @@ void MinecraftVersionList::sort()
|
|||
endResetModel();
|
||||
}
|
||||
|
||||
InstVersion *MinecraftVersionList::getLatestStable() const
|
||||
{
|
||||
for (int i = 0; i < m_vlist.length(); i++)
|
||||
{
|
||||
if (((MinecraftVersion *)m_vlist.at(i))->versionType() == MinecraftVersion::CurrentStable)
|
||||
{
|
||||
return m_vlist.at(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MinecraftVersionList &MinecraftVersionList::getMainList()
|
||||
{
|
||||
return mcVList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue