summaryrefslogtreecommitdiffstats
path: root/logic/BaseVersionList.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-05-02 12:44:37 +0200
committerPetr Mrázek <peterix@gmail.com>2015-05-02 12:44:37 +0200
commit4fc4a172562a76091721b8c488aafbd6ed2b01ed (patch)
tree618f1f0cb5e2308289178f2398550962f9eed2cd /logic/BaseVersionList.cpp
parentbb01c91469e3c5cbb250ce47c2d40f00f8be0c0a (diff)
downloadMultiMC-4fc4a172562a76091721b8c488aafbd6ed2b01ed.tar
MultiMC-4fc4a172562a76091721b8c488aafbd6ed2b01ed.tar.gz
MultiMC-4fc4a172562a76091721b8c488aafbd6ed2b01ed.tar.lz
MultiMC-4fc4a172562a76091721b8c488aafbd6ed2b01ed.tar.xz
MultiMC-4fc4a172562a76091721b8c488aafbd6ed2b01ed.zip
NOISSUE handle recommended versions better
Moved constants to the version data file Use recommended Minecraft instead of latest stable for new instances by default
Diffstat (limited to 'logic/BaseVersionList.cpp')
-rw-r--r--logic/BaseVersionList.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/BaseVersionList.cpp b/logic/BaseVersionList.cpp
index fe17a905..73f4a7ef 100644
--- a/logic/BaseVersionList.cpp
+++ b/logic/BaseVersionList.cpp
@@ -38,6 +38,11 @@ BaseVersionPtr BaseVersionList::getLatestStable() const
return at(0);
}
+BaseVersionPtr BaseVersionList::getRecommended() const
+{
+ return getLatestStable();
+}
+
QVariant BaseVersionList::data(const QModelIndex &index, int role) const
{
if (!index.isValid())