forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user