diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-31 12:04:17 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:17 +0100 |
| commit | fcf0aff98b43c9cb3b64c01cd03693e55f82fba7 (patch) | |
| tree | c54193398d4272182575e14d8e5e877d8bbad609 /src/modlistviewactions.cpp | |
| parent | 48d92fbd9f40eb722fa0bda9043bf6725eb5a083 (diff) | |
Replace hasFlag by isX.
Diffstat (limited to 'src/modlistviewactions.cpp')
| -rw-r--r-- | src/modlistviewactions.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modlistviewactions.cpp b/src/modlistviewactions.cpp index 97fb03ae..2b5bf026 100644 --- a/src/modlistviewactions.cpp +++ b/src/modlistviewactions.cpp @@ -447,8 +447,7 @@ void ModListViewActions::displayModInformation(ModInfo::Ptr modInfo, unsigned in m_core.modList()->modInfoChanged(modInfo); } - if (m_core.currentProfile()->modEnabled(modIndex) - && !modInfo->hasFlag(ModInfo::FLAG_FOREIGN)) { + if (m_core.currentProfile()->modEnabled(modIndex) && !modInfo->isForeign()) { FilesOrigin& origin = m_core.directoryStructure()->getOriginByName(ToWString(modInfo->name())); origin.enable(false); @@ -497,7 +496,7 @@ void ModListViewActions::sendModsToSeparator(const QModelIndexList& index) const for (auto iter = indexesByPriority.begin(); iter != indexesByPriority.end(); iter++) { if ((iter->second != UINT_MAX)) { ModInfo::Ptr modInfo = ModInfo::getByIndex(iter->second); - if (modInfo->hasFlag(ModInfo::FLAG_SEPARATOR)) { + if (modInfo->isSeparator()) { separators << modInfo->name().chopped(10); // Chops the "_separator" away from the name } } @@ -1061,7 +1060,7 @@ void ModListViewActions::moveOverwriteContentToExistingMod() const for (auto& iter : indexesByPriority) { if ((iter.second != UINT_MAX)) { ModInfo::Ptr modInfo = ModInfo::getByIndex(iter.second); - if (!modInfo->hasFlag(ModInfo::FLAG_SEPARATOR) && !modInfo->hasFlag(ModInfo::FLAG_FOREIGN) && !modInfo->hasFlag(ModInfo::FLAG_OVERWRITE)) { + if (!modInfo->isSeparator() && !modInfo->isForeign() && !modInfo->isOverwrite()) { mods << modInfo->name(); } } |
