summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2019-01-28 14:59:02 -0600
committerLostDragonist <lost.dragonist@gmail.com>2019-01-28 15:13:46 -0600
commit6e3d40a2301f0938bc5ac6d672661161605e660b (patch)
tree720a18f811bf77747f5ac8c11db2ef8fbc6932ab /src/organizercore.cpp
parent4b87be4d3ddc18da324b071bf799063d5b7dfbf5 (diff)
Change modsSortedByProfilePriority to not return overwrite or backup mods
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index b5a1cb8a..10b6fd8b 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1207,7 +1207,11 @@ QStringList OrganizerCore::modsSortedByProfilePriority() const
i < currentProfile()->getPriorityMinimum() + (int)currentProfile()->numRegularMods();
++i) {
int modIndex = currentProfile()->modIndexByPriority(i);
- res.push_back(ModInfo::getByIndex(modIndex)->name());
+ auto modInfo = ModInfo::getByIndex(modIndex);
+ if (!modInfo->hasFlag(ModInfo::FLAG_OVERWRITE) &&
+ !modInfo->hasFlag(ModInfo::FLAG_BACKUP)) {
+ res.push_back(ModInfo::getByIndex(modIndex)->name());
+ }
}
return res;
}