summaryrefslogtreecommitdiff
path: root/src/modlistviewactions.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-13 13:00:54 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-13 13:00:54 +0100
commitc93cf33c8324052b321fc0428c394016abcee115 (patch)
tree52280bbb9f687c3aebff2becf038eca49d6f846f /src/modlistviewactions.cpp
parent163b33f22817fda6ead29de8f9d9624434766be9 (diff)
Remove OrganizerCore::modsSortedByProfilePriority.
Diffstat (limited to 'src/modlistviewactions.cpp')
-rw-r--r--src/modlistviewactions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modlistviewactions.cpp b/src/modlistviewactions.cpp
index cc50f009..63d74192 100644
--- a/src/modlistviewactions.cpp
+++ b/src/modlistviewactions.cpp
@@ -547,7 +547,7 @@ void ModListViewActions::sendModsToSeparator(const QModelIndexList& index) const
int newPriority = std::numeric_limits<int>::max();
bool foundSection = false;
- for (auto mod : m_core.modsSortedByProfilePriority(m_core.currentProfile())) {
+ for (auto mod : m_core.modList()->allModsByProfilePriority()) {
unsigned int modIndex = ModInfo::getIndex(mod);
ModInfo::Ptr modInfo = ModInfo::getByIndex(modIndex);
if (!foundSection && result.compare(mod) == 0) {
@@ -1128,7 +1128,7 @@ void ModListViewActions::moveOverwriteContentToExistingMod() const
QString modAbsolutePath;
- for (const auto& mod : m_core.modsSortedByProfilePriority(m_core.currentProfile())) {
+ for (const auto& mod : m_core.modList()->allModsByProfilePriority()) {
if (result.compare(mod) == 0) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(ModInfo::getIndex(mod));
modAbsolutePath = modInfo->absolutePath();