Commit fbbbba1d authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Device support: Don't create a Core::Id object with an empty string.



Otherwise we get ugly assertions.

Change-Id: I393e827dae51dcb07e1e554c6dfff0d7b639864c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 89c60eee
......@@ -103,8 +103,8 @@ bool RemoteLinuxDeployConfiguration::fromMap(const QVariantMap &map)
{
if (!DeployConfiguration::fromMap(map))
return false;
setDeviceConfig(Core::Id(map.value(QLatin1String(DeviceIdKey),
IDevice::invalidId().toString()).toString()));
const QString idString = map.value(QLatin1String(DeviceIdKey)).toString();
setDeviceConfig(!idString.isEmpty() ? Core::Id(idString) : IDevice::invalidId());
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment