From d6e08c3542ecf6ac98aba2c1db5bfc57d89b65af Mon Sep 17 00:00:00 2001 From: Thomas Hartmann <Thomas.Hartmann@nokia.com> Date: Tue, 1 Mar 2011 14:33:40 +0100 Subject: [PATCH] QmlJs::Check: turning "file or directory does not exist" into a warning Missing files should be a warning. --- src/libs/qmljs/qmljscheck.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 8c3d0d1554d..a3754470b8e 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -174,8 +174,10 @@ public: fileName.prepend(QDir::separator()); fileName.prepend(_doc->path()); } - if (!QFileInfo(fileName).exists()) + if (!QFileInfo(fileName).exists()) { _message.message = Check::tr("file or directory does not exist"); + _message.kind = DiagnosticMessage::Warning; + } } } } -- GitLab