Skip to content
Snippets Groups Projects
Commit 46c4d18a authored by Daniel Teske's avatar Daniel Teske Committed by Tobias Hunger
Browse files

DeviceTypeKitInformation: Prevent warning on console on initial start


Change-Id: I11cb697d5945f094c8580010d40ad5a360b27c16
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent ae8fb833
No related branches found
No related tags found
No related merge requests found
......@@ -316,7 +316,10 @@ const Core::Id DeviceTypeKitInformation::deviceTypeId(const Kit *k)
// FIXME: This should be fromSetting/toSetting instead.
if (!k)
return Core::Id();
return Core::Id::fromName(k->value(DEVICETYPE_INFORMATION).toByteArray());
QByteArray value = k->value(DEVICETYPE_INFORMATION).toByteArray();
if (value.isEmpty())
return Core::Id();
return Core::Id::fromName(value);
}
void DeviceTypeKitInformation::setDeviceTypeId(Kit *k, Core::Id type)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment