From 8e1e987dd5c9fd333dce5160b2d5cc894931b7b8 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 28 Jun 2016 12:49:35 +0200 Subject: [PATCH] QmlJS: Do not try the canonical file path This is a real bottle neck on Windows and I do not know of a case where it is required. Change-Id: I99ebf3bfdd22cfb0ed82d6d39eeb83f079f654d6 Reviewed-by: Marco Benelli --- src/libs/qmljs/qmljslink.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index 606475a35be..d9f21183f4f 100644 --- a/src/libs/qmljs/qmljslink.cpp +++ b/src/libs/qmljs/qmljslink.cpp @@ -426,13 +426,8 @@ bool LinkPrivate::importLibrary(Document::Ptr doc, QString libraryPath = libraryPath_; LibraryInfo libraryInfo = snapshot.libraryInfo(libraryPath); - if (!libraryInfo.isValid()) { - // try canonical path - libraryPath = QFileInfo(libraryPath).canonicalFilePath(); - libraryInfo = snapshot.libraryInfo(libraryPath); - if (!libraryInfo.isValid()) - return false; - } + if (!libraryInfo.isValid()) + return false; import->libraryPath = libraryPath;