summaryrefslogtreecommitdiff
path: root/src/modinfodialogconflicts.cpp
diff options
context:
space:
mode:
authorSeth Riley <17361645+Qudix@users.noreply.github.com>2020-11-06 12:02:43 -0600
committerSeth Riley <17361645+Qudix@users.noreply.github.com>2020-11-06 12:02:43 -0600
commited1085d5673e0d307a6172eaaa1be1e9d70e2234 (patch)
tree1e068a2f08e106c8ce15be7034f19336836cc17a /src/modinfodialogconflicts.cpp
parent34e1d05c28bf4676ed8d3e97e969187a05d215b6 (diff)
parentb909677c3fc6a7b7a1993d341a2bd420715e292a (diff)
Merge branch 'master' of https://github.com/ModOrganizer2/modorganizer into master
Diffstat (limited to 'src/modinfodialogconflicts.cpp')
-rw-r--r--src/modinfodialogconflicts.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modinfodialogconflicts.cpp b/src/modinfodialogconflicts.cpp
index 0103b58a..cf7f6340 100644
--- a/src/modinfodialogconflicts.cpp
+++ b/src/modinfodialogconflicts.cpp
@@ -1001,7 +1001,7 @@ std::optional<ConflictItem> AdvancedConflictsTab::createItem(
if (currOrigin->getID() == fileOrigin) {
// current origin is the active winner, all alternatives go in 'before'
-
+
if (showAllAlts) {
for (const auto& alt : alternatives)
{
@@ -1023,7 +1023,7 @@ std::optional<ConflictItem> AdvancedConflictsTab::createItem(
}
else {
// current mod is one of the alternatives, find its position
-
+
auto currOrgId = currOrigin->getID();
auto currModIter = std::find_if(alternatives.begin(), alternatives.end(),
@@ -1037,14 +1037,14 @@ std::optional<ConflictItem> AdvancedConflictsTab::createItem(
}
isCurrOrigArchive = currModIter->isFromArchive();
-
+
if (showAllAlts) {
// fills 'before' and 'after' with all the alternatives that come
- // before and after the current mod, trusting the alternatives vector to be
+ // before and after the current mod, trusting the alternatives vector to be
// already sorted correctly
-
+
for (auto iter = alternatives.begin(); iter != alternatives.end(); iter++) {
-
+
const auto& altOrigin = ds.getOriginByID(iter->originID());
if (iter < currModIter) {
@@ -1094,7 +1094,7 @@ std::optional<ConflictItem> AdvancedConflictsTab::createItem(
after += ds.getOriginByID(fileOrigin).getName();
}
-
+
}
}
}