forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user