Commit eabd5813 authored by Christian Kamm's avatar Christian Kamm

QmlJS: Fix build with Qt 4.7.

Change-Id: Ibe239db039bd64892a55805847de61dedad76640
Reviewed-by: default avatarDaniel Teske <>
parent 0945269a
......@@ -857,7 +857,7 @@ bool QmlJSCompletionAssistProcessor::completeUrl(const QString &relativeBasePath
const QUrl url(urlString);
QString fileName;
if (url.isLocalFile()) {
if (url.scheme().compare(QLatin1String("file"), Qt::CaseInsensitive) == 0) {
fileName = url.toLocalFile();
// should not trigger completion on 'file://'
if (fileName.isEmpty())
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