aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljscheck.cpp
diff options
context:
space:
mode:
authorChristian Kamm <[email protected]>2010-03-29 11:32:11 +0200
committerChristian Kamm <[email protected]>2010-03-29 11:33:25 +0200
commit285e2ffbb2efa2c8091ddd968f104ece6f535fd5 (patch)
tree97a238e5b95026009fb9978c1f45782b33b290c1 /src/libs/qmljs/qmljscheck.cpp
parent7c04d11f4455e0e2d54dae48487efea4c3385e77 (diff)
QmlJS: Only collect linker errors for the current file being checked.
Avoids bug where import errors would show up in all files. Reviewed-by: Roberto Raggi
Diffstat (limited to 'src/libs/qmljs/qmljscheck.cpp')
-rw-r--r--src/libs/qmljs/qmljscheck.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp
index 996d8de4ab5..f6eb31a3239 100644
--- a/src/libs/qmljs/qmljscheck.cpp
+++ b/src/libs/qmljs/qmljscheck.cpp
@@ -174,7 +174,7 @@ Check::Check(Document::Ptr doc, const Snapshot &snapshot, const QStringList &imp
: _doc(doc)
, _snapshot(snapshot)
, _context(&_engine)
- , _link(&_context, snapshot, importPaths)
+ , _link(&_context, doc, snapshot, importPaths)
, _scopeBuilder(doc, &_context)
{
}