summaryrefslogtreecommitdiff
path: root/src/modlistviewactions.cpp
diff options
context:
space:
mode:
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 09142026..ed26faa8 100644
--- a/src/modlistviewactions.cpp
+++ b/src/modlistviewactions.cpp
@@ -558,7 +558,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) {
@@ -1139,7 +1139,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();