Commit 6b8eb847 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

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.
parent a20846a0
...@@ -3218,7 +3218,8 @@ bool ProFileEvaluator::Private::evaluateFileInto( ...@@ -3218,7 +3218,8 @@ bool ProFileEvaluator::Private::evaluateFileInto(
void ProFileEvaluator::Private::evalError(const QString &message) const void ProFileEvaluator::Private::evalError(const QString &message) const
{ {
if (!m_skipLevel) 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);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment