forked from qt-creator/qt-creator
Device support: Don't create a Core::Id object with an empty string.
Otherwise we get ugly assertions. Change-Id: I393e827dae51dcb07e1e554c6dfff0d7b639864c Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -103,8 +103,8 @@ bool RemoteLinuxDeployConfiguration::fromMap(const QVariantMap &map)
|
|||||||
{
|
{
|
||||||
if (!DeployConfiguration::fromMap(map))
|
if (!DeployConfiguration::fromMap(map))
|
||||||
return false;
|
return false;
|
||||||
setDeviceConfig(Core::Id(map.value(QLatin1String(DeviceIdKey),
|
const QString idString = map.value(QLatin1String(DeviceIdKey)).toString();
|
||||||
IDevice::invalidId().toString()).toString()));
|
setDeviceConfig(!idString.isEmpty() ? Core::Id(idString) : IDevice::invalidId());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user