mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 10:10:07 +01:00
libnm-glib: allow NULL device for nm_client_activate_connection()
This commit is contained in:
parent
da4928aea7
commit
d4f8c43f40
1 changed files with 3 additions and 2 deletions
|
|
@ -1169,7 +1169,8 @@ nm_client_activate_connection (NMClient *client,
|
|||
ActivateDeviceInfo *info;
|
||||
|
||||
g_return_if_fail (NM_IS_CLIENT (client));
|
||||
g_return_if_fail (NM_IS_DEVICE (device));
|
||||
if (device)
|
||||
g_return_if_fail (NM_IS_DEVICE (device));
|
||||
g_return_if_fail (connection_path != NULL);
|
||||
|
||||
info = g_slice_new (ActivateDeviceInfo);
|
||||
|
|
@ -1179,7 +1180,7 @@ nm_client_activate_connection (NMClient *client,
|
|||
|
||||
org_freedesktop_NetworkManager_activate_connection_async (NM_CLIENT_GET_PRIVATE (client)->client_proxy,
|
||||
connection_path,
|
||||
nm_object_get_path (NM_OBJECT (device)),
|
||||
device ? nm_object_get_path (NM_OBJECT (device)) : "/",
|
||||
specific_object ? specific_object : "/",
|
||||
activate_cb,
|
||||
info);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue