summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-13 13:27:36 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-13 13:27:36 +0100
commit853db4a60a0a701b92d3eb7be7c3a0d8d8f6f2b1 (patch)
tree44ca3feb7ed5d8069472c2325b121113cf11c905 /src
parentce95d8b1bdcfbf6504e0be1588a42bf0f3e78849 (diff)
Use isBackup() and isOverwrite() instead of testing flags.
Diffstat (limited to 'src')
-rw-r--r--src/modlist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index d4ffbeff..1c097db4 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -907,9 +907,8 @@ QStringList ModList::allModsByProfilePriority(MOBase::IProfile* profile) const
++i) {
int modIndex = mo2Profile->modIndexByPriority(i);
auto modInfo = ModInfo::getByIndex(modIndex);
- if (!modInfo->hasFlag(ModInfo::FLAG_OVERWRITE) &&
- !modInfo->hasFlag(ModInfo::FLAG_BACKUP)) {
- res.push_back(ModInfo::getByIndex(modIndex)->internalName());
+ if (!modInfo->isBackup() && !modInfo->isOverwrite()) {
+ res.push_back(modInfo->internalName());
}
}
return res;