From d804a5e186b421c75e01338ce9d22601c78bbb38 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sun, 25 Oct 2020 16:53:31 +0100 Subject: Move IOrganizer::modsSortedByProfilePriority() to IModList::allModsByProfilePriority(). --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') 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) { -- cgit v1.3.1