forked from qt-creator/qt-creator
Utils: Move FileUtils::resolvePath to FilePath
In line with the general move toward use of FilePath nowadays. Change-Id: I1c50e1479f7d9100ff8ded3ce3c22dd82b7fe6aa Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -4700,8 +4700,8 @@ static QString findExecutableFromName(const QString &fileNameFromCore, const QSt
|
||||
absPath = fileNameFromCore;
|
||||
} else {
|
||||
QFileInfo coreInfo(coreFile);
|
||||
QDir coreDir = coreInfo.dir();
|
||||
absPath = FileUtils::resolvePath(coreDir.absolutePath(), fileNameFromCore);
|
||||
FilePath coreDir = FilePath::fromString(coreInfo.dir().absolutePath());
|
||||
absPath = coreDir.resolvePath(fileNameFromCore).toString();
|
||||
}
|
||||
if (QFileInfo(absPath).isFile() || absPath.isEmpty())
|
||||
return absPath;
|
||||
|
||||
Reference in New Issue
Block a user