forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user