From 4fc4a172562a76091721b8c488aafbd6ed2b01ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 2 May 2015 12:44:37 +0200 Subject: NOISSUE handle recommended versions better Moved constants to the version data file Use recommended Minecraft instead of latest stable for new instances by default --- logic/BaseVersionList.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'logic/BaseVersionList.cpp') 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()) -- cgit v1.2.3