summaryrefslogtreecommitdiff
path: root/src/modinfo.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-06-15 20:01:28 +0200
committerTannin <devnull@localhost>2015-06-15 20:01:28 +0200
commit5dcfca7c9d83679b8e863e296687a6943a57a643 (patch)
tree912ff1b70a8dd0bfaee3a9a74028bfdd6376dccf /src/modinfo.cpp
parente9ee7e7f852ba5689f64b9dc4c23afb2b57de031 (diff)
bugfix: disabled mods were marked "redundant"
Diffstat (limited to 'src/modinfo.cpp')
-rw-r--r--src/modinfo.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index 69d51688..feb3a96c 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -463,20 +463,21 @@ void ModInfoWithConflictInfo::doConflictCheck() const
}
}
}
- }
-
- m_LastConflictCheck = QTime::currentTime();
+ m_LastConflictCheck = QTime::currentTime();
- if (!providesAnything)
- m_CurrentConflictState = CONFLICT_REDUNDANT;
- else if (!m_OverwriteList.empty() && !m_OverwrittenList.empty())
- m_CurrentConflictState = CONFLICT_MIXED;
- else if (!m_OverwriteList.empty())
- m_CurrentConflictState = CONFLICT_OVERWRITE;
- else if (!m_OverwrittenList.empty()) {
- m_CurrentConflictState = CONFLICT_OVERWRITTEN;
+ if (!providesAnything)
+ m_CurrentConflictState = CONFLICT_REDUNDANT;
+ else if (!m_OverwriteList.empty() && !m_OverwrittenList.empty())
+ m_CurrentConflictState = CONFLICT_MIXED;
+ else if (!m_OverwriteList.empty())
+ m_CurrentConflictState = CONFLICT_OVERWRITE;
+ else if (!m_OverwrittenList.empty()) {
+ m_CurrentConflictState = CONFLICT_OVERWRITTEN;
+ }
+ else m_CurrentConflictState = CONFLICT_NONE;
+ } else {
+ m_CurrentConflictState = CONFLICT_NONE;
}
- else m_CurrentConflictState = CONFLICT_NONE;
}
ModInfoWithConflictInfo::EConflictType ModInfoWithConflictInfo::isConflicted() const