mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 03:10:10 +01:00
modem: handle IP Method changes after modem has been created
Some modems don't know their IP method when they are created, but will update it later. Handle the changed signal for that.
This commit is contained in:
parent
08ba12929d
commit
2bee736df1
1 changed files with 6 additions and 0 deletions
|
|
@ -876,6 +876,12 @@ modem_properties_changed (DBusGProxy *proxy,
|
|||
priv->mm_enabled = g_value_get_boolean (value);
|
||||
g_object_notify (G_OBJECT (self), NM_MODEM_ENABLED);
|
||||
}
|
||||
|
||||
value = g_hash_table_lookup (props, "IpMethod");
|
||||
if (value && G_VALUE_HOLDS_UINT (value)) {
|
||||
priv->ip_method = g_value_get_uint (value);
|
||||
g_object_notify (G_OBJECT (self), NM_MODEM_IP_METHOD);
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue