Skip to content
Snippets Groups Projects
Commit 8de03ac2 authored by Christian Kamm's avatar Christian Kamm
Browse files

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

parent 25fe059d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment