mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 15:20:19 +01:00
manager: fix implementation of NMManager's "startup-complete
Due to a bug, NMManager would connect to "notify::connections"
and might miss an important notification when NMSettings declares
startup-complete.
Fixes: b067ca7034
This commit is contained in:
parent
d0ed5f83ce
commit
c57e5a6b66
2 changed files with 8 additions and 1 deletions
|
|
@ -2435,6 +2435,13 @@ nm_settings_class_init (NMSettingsClass *class)
|
|||
G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_STARTUP_COMPLETE,
|
||||
g_param_spec_boolean (NM_SETTINGS_STARTUP_COMPLETE, "", "",
|
||||
FALSE,
|
||||
G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/* signals */
|
||||
signals[CONNECTION_ADDED] =
|
||||
g_signal_new (NM_SETTINGS_SIGNAL_CONNECTION_ADDED,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#define NM_SETTINGS_HOSTNAME "hostname"
|
||||
#define NM_SETTINGS_CAN_MODIFY "can-modify"
|
||||
#define NM_SETTINGS_CONNECTIONS "connections"
|
||||
#define NM_SETTINGS_STARTUP_COMPLETE "connections"
|
||||
#define NM_SETTINGS_STARTUP_COMPLETE "startup-complete"
|
||||
|
||||
#define NM_SETTINGS_SIGNAL_CONNECTION_ADDED "connection-added"
|
||||
#define NM_SETTINGS_SIGNAL_CONNECTION_UPDATED "connection-updated"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue