diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-06-28 12:49:35 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-06-28 13:23:26 +0000 |
commit | 8e1e987dd5c9fd333dce5160b2d5cc894931b7b8 (patch) | |
tree | 3cd003eca566037d2b12838dab7e79313f5cfb87 /src | |
parent | 2ac7300f0e50d17ed65bc2fd63adc16ae6a209b8 (diff) | |
download | qt-creator-8e1e987dd5c9fd333dce5160b2d5cc894931b7b8.tar.gz |
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 <marco.benelli@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/qmljs/qmljslink.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index 606475a35b..d9f21183f4 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; |