diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 16:53:31 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-25 16:53:31 +0100 |
| commit | d804a5e186b421c75e01338ce9d22601c78bbb38 (patch) | |
| tree | 2962f72d47617ca6c7a28e1b1f9e20fa507f81a9 /src/organizercore.cpp | |
| parent | cca709baaeb415d4cc600d3274169c2db7c90bd9 (diff) | |
Move IOrganizer::modsSortedByProfilePriority() to IModList::allModsByProfilePriority().
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index ac485c91..a66a6450 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -974,13 +974,13 @@ ModList *OrganizerCore::modList() return &m_ModList; } -QStringList OrganizerCore::modsSortedByProfilePriority() const +QStringList OrganizerCore::modsSortedByProfilePriority(Profile *profile) const { QStringList res; - for (int i = currentProfile()->getPriorityMinimum(); - i < currentProfile()->getPriorityMinimum() + (int)currentProfile()->numRegularMods(); + for (int i = profile->getPriorityMinimum(); + i < profile->getPriorityMinimum() + (int)profile->numRegularMods(); ++i) { - int modIndex = currentProfile()->modIndexByPriority(i); + int modIndex = profile->modIndexByPriority(i); auto modInfo = ModInfo::getByIndex(modIndex); if (!modInfo->hasFlag(ModInfo::FLAG_OVERWRITE) && !modInfo->hasFlag(ModInfo::FLAG_BACKUP)) { |
