From 6e3d40a2301f0938bc5ac6d672661161605e660b Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Mon, 28 Jan 2019 14:59:02 -0600 Subject: Change modsSortedByProfilePriority to not return overwrite or backup mods --- src/organizercore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/organizercore.cpp') 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; } -- cgit v1.3.1