mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 19:30:07 +01:00
settings: fix creation of default-wired-connection in device_realized()
Fixes-test: @allow_wired_connections
Fixes: 3e39d2a586 ('settings: shortcut check for whether to create auto-default wired connection')
This commit is contained in:
parent
41fc9196aa
commit
7df769600b
1 changed files with 1 additions and 1 deletions
|
|
@ -3429,7 +3429,7 @@ device_realized (NMDevice *device, GParamSpec *pspec, NMSettings *self)
|
|||
/* If the device isn't managed or it already has a default wired connection,
|
||||
* ignore it.
|
||||
*/
|
||||
if ( !NM_DEVICE_GET_CLASS (self)->new_default_connection
|
||||
if ( !NM_DEVICE_GET_CLASS (device)->new_default_connection
|
||||
|| !nm_device_get_managed (device, FALSE)
|
||||
|| g_object_get_qdata (G_OBJECT (device), _default_wired_connection_quark ()))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue