CMakePM: Use Utils::FilePath for accessing cmake tools

When storing the cmake tools we otherwise drop auto detected
ones when failing to access them locally.
This makes the cmake tools on docker devices persist on Windows
as long the docker daemon is running.

Change-Id: I5235cf00aff49359a2e20ddc1667bcbb99337092
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-07-14 15:20:37 +02:00
parent 5c5e9bd339
commit b0e0b3ecda

View File

@@ -211,9 +211,9 @@ void CMakeToolSettingsAccessor::saveCMakeTools(const QList<CMakeTool *> &cmakeTo
int count = 0; int count = 0;
for (const CMakeTool *item : cmakeTools) { for (const CMakeTool *item : cmakeTools) {
QFileInfo fi = item->cmakeExecutable().toFileInfo(); Utils::FilePath fi = item->cmakeExecutable();
if (fi.isExecutable()) { if (fi.isExecutableFile()) {
QVariantMap tmp = item->toMap(); QVariantMap tmp = item->toMap();
if (tmp.isEmpty()) if (tmp.isEmpty())
continue; continue;