diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp index cdd98880967..07aa79473c4 100644 --- a/src/plugins/glsleditor/glsleditor.cpp +++ b/src/plugins/glsleditor/glsleditor.cpp @@ -317,7 +317,7 @@ IAssistInterface *GlslEditorWidget::createAssistInterface( if (kind == Completion) return new GlslCompletionAssistInterface(document(), position(), - editor()->document()->filePath(), + textDocument()->filePath(), reason, textDocument()->mimeType(), m_glslDocument);