mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 07:09:57 +00:00
fu-device: Add platform ID after creating GUID for children
This fixes issues where the child gets the same ID as the parent.
This commit is contained in:
parent
e39801f00d
commit
b172fb8f63
@ -465,9 +465,9 @@ fu_device_add_child_by_type_guid (FuDevice *self, GType type, const gchar *guid)
|
||||
child = g_object_new (type,
|
||||
"quirks", priv->quirks,
|
||||
NULL);
|
||||
fu_device_add_guid (child, guid);
|
||||
if (fu_device_get_platform_id (self) != NULL)
|
||||
fu_device_set_platform_id (child, fu_device_get_platform_id (self));
|
||||
fu_device_add_guid (child, guid);
|
||||
fu_device_add_child (self, child);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user