summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-10-31 20:00:20 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-11-01 06:40:55 -0500
commit122744454c9befc06b582a8f0feb03bfbb85aa71 (patch)
treeebd98ab890695fb6c80ed5a50eefabc4e27b62cc /src/organizercore.cpp
parent5de173ba1ae9531aaca0c0f022a2b0dae1c09250 (diff)
Improve changing mod and plugin priorities
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 5c85e323..1fafd4c1 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1183,7 +1183,9 @@ ModList *OrganizerCore::modList()
QStringList OrganizerCore::modsSortedByProfilePriority() const
{
QStringList res;
- for (unsigned int i = 0; i < currentProfile()->numRegularMods(); ++i) {
+ for (int i = currentProfile()->getPriorityMinimum();
+ i < currentProfile()->getPriorityMinimum() + currentProfile()->numRegularMods();
+ ++i) {
int modIndex = currentProfile()->modIndexByPriority(i);
res.push_back(ModInfo::getByIndex(modIndex)->name());
}
@@ -2304,4 +2306,4 @@ std::vector<Mapping> OrganizerCore::fileMapping(
result.insert(result.end(), subRes.begin(), subRes.end());
}
return result;
-} \ No newline at end of file
+}