forked from qt-creator/qt-creator
QmlJS: Fix build with Qt 4.7.
Change-Id: Ibe239db039bd64892a55805847de61dedad76640 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user