OSDN Git Service
(root)
/
qt-creator-jp
/
qt-creator-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad21b48
)
QmlJs::Check: turning "file or directory does not exist" into a warning
author
Thomas Hartmann
<Thomas.Hartmann@nokia.com>
Tue, 1 Mar 2011 13:33:40 +0000
(14:33 +0100)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/src/libs/qmljs/qmljscheck.cpp
b/src/libs/qmljs/qmljscheck.cpp
index
8c3d0d1
..
a375447
100644
(file)
--- 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;
+ }
}
}
}