From 855e8bd737c6b7e41c331bd8a2f927800c189b2d Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 22 Jan 2015 19:55:41 +0100 Subject: fixed logging in case of changes and errors in the mod list --- src/profile.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/profile.cpp b/src/profile.cpp index 01d75446..418a4426 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -290,14 +290,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 } } -- cgit v1.3.1