From 8209e42106c48e30e8dea0e7e1ea367493cac6cc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 10 Jan 2018 17:36:15 +0100 Subject: [PATCH] wwan: notify change of modem:data-port when clearing ip-iface data-port returns ip-iface, if set. Clearing it, most likely causes the property to change. Emit a notification. --- src/devices/wwan/nm-modem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/wwan/nm-modem.c b/src/devices/wwan/nm-modem.c index d55936c38..0237c3a75 100644 --- a/src/devices/wwan/nm-modem.c +++ b/src/devices/wwan/nm-modem.c @@ -1138,7 +1138,8 @@ deactivate_cleanup (NMModem *self, NMDevice *device) priv->ip6_method = NM_MODEM_IP_METHOD_UNKNOWN; _set_ip_ifindex (self, -1); - nm_clear_g_free (&priv->ip_iface); + if (nm_clear_g_free (&priv->ip_iface)) + _notify (self, PROP_DATA_PORT); } /*****************************************************************************/