fix crash when evalError() is called before a block is started

would happen if a qt installation simply disappeared and the qt version
manager didn't notice it yet.
This commit is contained in:
Oswald Buddenhagen
2011-03-21 15:43:56 +01:00
parent a20846a052
commit 6b8eb847c4

View File

@@ -3218,7 +3218,8 @@ bool ProFileEvaluator::Private::evaluateFileInto(
void ProFileEvaluator::Private::evalError(const QString &message) const
{
if (!m_skipLevel)
m_handler->evalError(m_current.pro->fileName(), m_current.line, message);
m_handler->evalError(m_current.line ? m_current.pro->fileName() : QString(),
m_current.line, message);
}