diff options
Diffstat (limited to 'src/qmlcompiler/qqmljslogger.cpp')
-rw-r--r-- | src/qmlcompiler/qqmljslogger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljslogger.cpp b/src/qmlcompiler/qqmljslogger.cpp index 976f706a9b..3f00265c62 100644 --- a/src/qmlcompiler/qqmljslogger.cpp +++ b/src/qmlcompiler/qqmljslogger.cpp @@ -274,7 +274,7 @@ void QQmlJSLogger::log(const QString &message, LoggerWarningId id, default: break; } - if (srcLocation.isValid() && !m_code.isEmpty() && showContext) + if (srcLocation.length > 0 && !m_code.isEmpty() && showContext) printContext(overrideFileName, srcLocation); if (suggestion.has_value()) |