forked from qt-creator/qt-creator
ProjectExplorer: Avoid prefixing schemes with slash
Without that I get folder nodes named "/ssh://user@12.23.45.67/..." Change-Id: I03f87c650478781fe934e8a647a8883f024b7a2b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -57,8 +57,8 @@ static FolderNode *recursiveFindOrCreateFolderNode(FolderNode *folder,
|
||||
directoryWithoutPrefix = directory;
|
||||
}
|
||||
}
|
||||
QStringList parts = directoryWithoutPrefix.toString().split('/', Qt::SkipEmptyParts);
|
||||
if (!Utils::HostOsInfo::isWindowsHost() && !isRelative && !parts.isEmpty())
|
||||
QStringList parts = directoryWithoutPrefix.path().split('/', Qt::SkipEmptyParts);
|
||||
if (directory.osType() != OsTypeWindows && !isRelative && !parts.isEmpty())
|
||||
parts[0].prepend('/');
|
||||
|
||||
ProjectExplorer::FolderNode *parent = folder;
|
||||
|
Reference in New Issue
Block a user