mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 04:40:04 +01:00
device: fix signal emission on port detach/release
The "notify::controller" signal must be emitted on the port, not on the controller. Fixes:1f05526ed7('core: drop NMDevice master and introduce controller') (cherry picked from commit012f1cbfac)
This commit is contained in:
parent
ca7d42cd7a
commit
43058de07a
1 changed files with 2 additions and 2 deletions
|
|
@ -9029,7 +9029,7 @@ nm_device_port_notify_attach_as_port(NMDevice *self, gboolean success)
|
|||
|
||||
priv->is_attached = TRUE;
|
||||
|
||||
_notify(priv->controller, PROP_CONTROLLER);
|
||||
_notify(self, PROP_CONTROLLER);
|
||||
|
||||
nm_clear_pointer(&NM_DEVICE_GET_PRIVATE(priv->controller)->ports_variant,
|
||||
g_variant_unref);
|
||||
|
|
@ -9108,7 +9108,7 @@ nm_device_port_notify_release(NMDevice *self,
|
|||
|
||||
priv->is_attached = FALSE;
|
||||
|
||||
_notify(priv->controller, PROP_CONTROLLER);
|
||||
_notify(self, PROP_CONTROLLER);
|
||||
|
||||
nm_clear_pointer(&NM_DEVICE_GET_PRIVATE(priv->controller)->ports_variant, g_variant_unref);
|
||||
nm_gobject_notify_together(priv->controller, PROP_PORTS, PROP_SLAVES);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue