RemoteLinux: Do not reject sftp deployment when no info is available

We would set up a non-working deploy configuration for devices that
existed before 11.0.
Amends 3cd0dad3d4.

Change-Id: If9d79207c9781e158635e35e211c0071109101db
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2023-08-10 10:06:20 +02:00
parent f13d9cc736
commit 9fc53ef745

View File

@@ -29,8 +29,11 @@ FileTransferMethod defaultTransferMethod(Kit *kit)
return FileTransferMethod::Rsync;
}
if (runDevice && runDevice->extraData(Constants::SupportsSftp).toBool())
if (runDevice) {
const QVariant sftpInfo = runDevice->extraData(Constants::SupportsSftp);
if (!sftpInfo.isValid() || sftpInfo.toBool())
return FileTransferMethod::Sftp;
}
return FileTransferMethod::GenericCopy;
}