QmlJs::Check: turning "file or directory does not exist" into a warning

Missing files should be a warning.
This commit is contained in:
Thomas Hartmann
2011-03-01 14:33:40 +01:00
parent ad21b4859a
commit d6e08c3542

View 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;
}
}
}
}