OSDN Git Service

QmlJs::Check: turning "file or directory does not exist" into a warning
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 1 Mar 2011 13:33:40 +0000 (14:33 +0100)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>
Tue, 1 Mar 2011 16:21:02 +0000 (17:21 +0100)
Missing files should be a warning.

src/libs/qmljs/qmljscheck.cpp

index 8c3d0d1..a375447 100644 (file)
@@ -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;
+                        }
                     }
                 }
             }