forked from qt-creator/qt-creator
ProjectExplorer: prevent using QFileInfo on remote paths
Change-Id: Icf5dc9a80af69e8e1c3d733847e227486fa8c897 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -71,7 +71,7 @@ static FolderNode *recursiveFindOrCreateFolderNode(FolderNode *folder,
|
||||
Utils::FilePath directoryWithoutPrefix;
|
||||
bool isRelative = false;
|
||||
|
||||
if (path.isEmpty() || path.toFileInfo().isRoot()) {
|
||||
if (path.isEmpty() || path.toDir().isRoot()) {
|
||||
directoryWithoutPrefix = directory;
|
||||
isRelative = false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user