mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 03:50:17 +01:00
cli: fix resetting default value for GObject property
This matters for properties that don't have 0/NULL/FALSE as default value and when setting an empty property with $ nmcli connection modify "$PROFILE" setting.property '' Fixes:3c82db710f('cli: reset default value of properties via set_fcn()') (cherry picked from commit403f207fe5)
This commit is contained in:
parent
548bacd24e
commit
2a2a66b4d5
1 changed files with 1 additions and 1 deletions
|
|
@ -894,7 +894,7 @@ _gobject_property_reset (NMSetting *setting,
|
|||
|
||||
g_value_init (&v, pspec->value_type);
|
||||
if (reset_default)
|
||||
g_param_value_defaults (pspec, &v);
|
||||
g_param_value_set_default (pspec, &v);
|
||||
g_object_set_property (G_OBJECT (setting), prop_name, &v);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue