summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-10-25 16:53:31 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-10-25 16:53:31 +0100
commitd804a5e186b421c75e01338ce9d22601c78bbb38 (patch)
tree2962f72d47617ca6c7a28e1b1f9e20fa507f81a9 /src/mainwindow.cpp
parentcca709baaeb415d4cc600d3274169c2db7c90bd9 (diff)
Move IOrganizer::modsSortedByProfilePriority() to IModList::allModsByProfilePriority().
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 851900a0..a2afb8a0 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3775,7 +3775,7 @@ void MainWindow::moveOverwriteContentToExistingMod()
QString modAbsolutePath;
- for (const auto& mod : m_OrganizerCore.modsSortedByProfilePriority()) {
+ for (const auto& mod : m_OrganizerCore.modsSortedByProfilePriority(m_OrganizerCore.currentProfile())) {
if (result.compare(mod) == 0) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(ModInfo::getIndex(mod));
modAbsolutePath = modInfo->absolutePath();
@@ -6549,7 +6549,7 @@ void MainWindow::sendSelectedModsToSeparator_clicked()
int newPriority = INT_MAX;
bool foundSection = false;
- for (auto mod : m_OrganizerCore.modsSortedByProfilePriority()) {
+ for (auto mod : m_OrganizerCore.modsSortedByProfilePriority(m_OrganizerCore.currentProfile())) {
unsigned int modIndex = ModInfo::getIndex(mod);
ModInfo::Ptr modInfo = ModInfo::getByIndex(modIndex);
if (!foundSection && result.compare(mod) == 0) {