From ffd94e72b4ae137854e1ff3c96ff88eb48cea140 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 23 May 2015 17:25:58 +0200 Subject: - bugfix: immediately after creating the first profile, the directory structure didn't correctly assign files to unhandled. --- src/profile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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(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; } -- cgit v1.3.1