aboutsummaryrefslogtreecommitdiff
path: root/launcher/meta/VersionList.cpp
diff options
context:
space:
mode:
authorTayou <31988415+TayouVR@users.noreply.github.com>2023-06-07 18:57:46 +0200
committerGitHub <noreply@github.com>2023-06-07 18:57:46 +0200
commit9b9d439fce9408712a594bb294e3bd5f108e31bc (patch)
tree7a5d4ab7647433f2dd51aef5f7400e22a09fa166 /launcher/meta/VersionList.cpp
parent62d1bc87aececcc365fe24d19e9160d78cbb891b (diff)
parent1043d29dd5b399991ed7055df5a1eced982f4c4c (diff)
downloadPrismLauncher-9b9d439fce9408712a594bb294e3bd5f108e31bc.tar.gz
PrismLauncher-9b9d439fce9408712a594bb294e3bd5f108e31bc.tar.bz2
PrismLauncher-9b9d439fce9408712a594bb294e3bd5f108e31bc.zip
Merge pull request #1111 from Trial97/requires
Diffstat (limited to 'launcher/meta/VersionList.cpp')
-rw-r--r--launcher/meta/VersionList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/meta/VersionList.cpp b/launcher/meta/VersionList.cpp
index 7f001dfc..9f448278 100644
--- a/launcher/meta/VersionList.cpp
+++ b/launcher/meta/VersionList.cpp
@@ -77,7 +77,7 @@ QVariant VersionList::data(const QModelIndex &index, int role) const
case ParentVersionRole:
{
// FIXME: HACK: this should be generic and be replaced by something else. Anything that is a hard 'equals' dep is a 'parent uid'.
- auto & reqs = version->requires();
+ auto & reqs = version->requiredSet();
auto iter = std::find_if(reqs.begin(), reqs.end(), [](const Require & req)
{
return req.uid == "net.minecraft";
@@ -92,7 +92,7 @@ QVariant VersionList::data(const QModelIndex &index, int role) const
case UidRole: return version->uid();
case TimeRole: return version->time();
- case RequiresRole: return QVariant::fromValue(version->requires());
+ case RequiresRole: return QVariant::fromValue(version->requiredSet());
case SortRole: return version->rawTime();
case VersionPtrRole: return QVariant::fromValue(version);
case RecommendedRole: return version->isRecommended();