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))
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user