diff options
| author | Tannin <devnull@localhost> | 2015-05-23 17:25:58 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-23 17:25:58 +0200 |
| commit | ffd94e72b4ae137854e1ff3c96ff88eb48cea140 (patch) | |
| tree | 21d0bc30d03e7610eea0155d54d5a34da169587b /src | |
| parent | 6435e1ab8a4d42684137e122dcf0aca02e28a1c2 (diff) | |
- bugfix: immediately after creating the first profile, the directory structure
didn't correctly assign files to unhandled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/profile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp index e0adbbc6..b990fbc1 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -272,7 +272,7 @@ void Profile::refreshModStatus() ModInfo::Ptr info = ModInfo::getByIndex(modIndex); if ((modIndex < m_ModStatus.size()) && (info->getFixedPriority() == INT_MIN)) { - m_ModStatus[modIndex].m_Enabled = enabled || info->alwaysEnabled(); + m_ModStatus[modIndex].m_Enabled = enabled; if (m_ModStatus[modIndex].m_Priority == -1) { if (static_cast<size_t>(index) >= m_ModStatus.size()) { throw MyException(tr("invalid index %1").arg(index)); @@ -302,6 +302,10 @@ void Profile::refreshModStatus() // give priorities to mods not referenced in the profile for (size_t i = 0; i < m_ModStatus.size(); ++i) { ModInfo::Ptr modInfo = ModInfo::getByIndex(i); + if (modInfo->alwaysEnabled()) { + m_ModStatus[i].m_Enabled = true; + } + if (modInfo->getFixedPriority() == INT_MAX) { continue; } |
