diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-01-14 09:11:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-14 09:11:52 +0100 |
| commit | 899308b31d541e78a3e4395bf33cd66c5ec4f769 (patch) | |
| tree | e360f819bbe96e7cc30626a53395c466967e8e0f /src/modlistviewactions.cpp | |
| parent | 34f7ae24501f75d5a74a09b6af939db6edaf6f1c (diff) | |
| parent | 853db4a60a0a701b92d3eb7be7c3a0d8d8f6f2b1 (diff) | |
Merge pull request #1360 from Holt59/organizercore-cleaning
OrganizerCore cleaning.
Diffstat (limited to 'src/modlistviewactions.cpp')
| -rw-r--r-- | src/modlistviewactions.cpp | 4 |
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(); |
