diff options
author | Andrew <forkk@forkk.net> | 2013-05-06 21:08:31 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-05-06 21:08:31 -0500 |
commit | fb0432bf0bb5ef6216462467cbae6fbe03100dcd (patch) | |
tree | cd8edfcd57ed9ab3267af4ec5995e91971b2f4f9 /libmultimc/src/minecraftversionlist.cpp | |
parent | 7e3592bee891e78c9d42dcd84bc9c1ac7a3e7688 (diff) | |
download | MultiMC-fb0432bf0bb5ef6216462467cbae6fbe03100dcd.tar MultiMC-fb0432bf0bb5ef6216462467cbae6fbe03100dcd.tar.gz MultiMC-fb0432bf0bb5ef6216462467cbae6fbe03100dcd.tar.lz MultiMC-fb0432bf0bb5ef6216462467cbae6fbe03100dcd.tar.xz MultiMC-fb0432bf0bb5ef6216462467cbae6fbe03100dcd.zip |
The default selected version is now the current stable version.
Resolves JIRA issue MMC-10:
https://jira.forkk.net/browse/MMC-10
Diffstat (limited to 'libmultimc/src/minecraftversionlist.cpp')
-rw-r--r-- | libmultimc/src/minecraftversionlist.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libmultimc/src/minecraftversionlist.cpp b/libmultimc/src/minecraftversionlist.cpp index abbae991..bb8b0f7a 100644 --- a/libmultimc/src/minecraftversionlist.cpp +++ b/libmultimc/src/minecraftversionlist.cpp @@ -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; |