diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-06 10:34:05 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-06 10:34:05 +0300 |
commit | 6505a6280111e29b33d829703d1c1a87f90dba7a (patch) | |
tree | 696b9f52b5e4e03b54d919204b4eb7a47f8788d1 /launcher/meta/VersionList.cpp | |
parent | 1840505a0f887ebfc2c719113873ea3345b133fb (diff) | |
download | PrismLauncher-6505a6280111e29b33d829703d1c1a87f90dba7a.tar.gz PrismLauncher-6505a6280111e29b33d829703d1c1a87f90dba7a.tar.bz2 PrismLauncher-6505a6280111e29b33d829703d1c1a87f90dba7a.zip |
Renamed requires fields
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/meta/VersionList.cpp')
-rw-r--r-- | launcher/meta/VersionList.cpp | 4 |
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(); |