Commit 8de03ac2 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix code completion when no semantic info is available.

parent 25fe059d
......@@ -681,6 +681,9 @@ int CodeCompletion::startCompletion(TextEditor::ITextEditable *editor)
const QmlJS::Snapshot snapshot = semanticInfo.snapshot;
const Document::Ptr document = semanticInfo.document;
if (!document)
return -1;
const QFileInfo currentFileInfo(fileName);
bool isQmlFile = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment