forked from qt-creator/qt-creator
AppMan: Fix getToolFilePath to return the correct tool path
Change-Id: I790d2b231b84ef55a0ae5e9502e29a6337e83db8 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -29,11 +29,11 @@ static FilePath getToolPathByQtVersion(const QtVersion *qtVersion,
|
|||||||
|
|
||||||
const FilePath qtHostBinsDir = qtVersion->hostBinPath();
|
const FilePath qtHostBinsDir = qtVersion->hostBinPath();
|
||||||
if (toolExistsInDir(qtHostBinsDir))
|
if (toolExistsInDir(qtHostBinsDir))
|
||||||
return qtHostBinsDir.absolutePath();
|
return qtHostBinsDir;
|
||||||
|
|
||||||
const FilePath qtBinDir = qtVersion->binPath();
|
const FilePath qtBinDir = qtVersion->binPath();
|
||||||
if (toolExistsInDir(qtBinDir))
|
if (toolExistsInDir(qtBinDir))
|
||||||
return qtBinDir.absolutePath();
|
return qtBinDir;
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user