summaryrefslogtreecommitdiff
path: root/src/profile.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-01-24 19:34:12 +0100
committerTannin <devnull@localhost>2015-01-24 19:34:12 +0100
commitc3a95bdef1d989a54684b966e042b12bf682046d (patch)
tree83a09ca9252b9d5a060acb415b8c3c0923cfe2c3 /src/profile.cpp
parent9edc39633b82b5e02d33c4b0a395fe110af28eb4 (diff)
parentf756aede08edb315ebe5882098191ebfe971fd81 (diff)
Merge with branch1.2
Diffstat (limited to 'src/profile.cpp')
-rw-r--r--src/profile.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/profile.cpp b/src/profile.cpp
index 775b309e..dd6814fd 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -286,7 +286,7 @@ void Profile::refreshModStatus()
modName = QString::fromUtf8(line.trimmed().constData());
}
if (modName.size() > 0) {
- QString lookupName = modName + (line.at(0) == '*' ? ModInfoForeign::INT_IDENTIFIER : "");
+ QString lookupName = modName;
if (namesRead.find(lookupName) != namesRead.end()) {
continue;
} else {
@@ -305,14 +305,17 @@ void Profile::refreshModStatus()
m_ModStatus[modIndex].m_Priority = index++;
}
} else {
- qDebug("mod \"%s\" (profile \"%s\") not found",
- modName.toUtf8().constData(), m_Directory.path().toUtf8().constData());
+ qWarning("no mod state for \"%s\" (profile \"%s\")",
+ qPrintable(modName), m_Directory.path().toUtf8().constData());
// need to rewrite the modlist to fix this
modStatusModified = true;
}
+ } else {
+ qDebug("mod \"%s\" (profile \"%s\") not found",
+ qPrintable(modName), m_Directory.path().toUtf8().constData());
+ // need to rewrite the modlist to fix this
+ modStatusModified = true;
}
- } else {
- // line was empty after trimming
}
}