settings: fix loading of keyfile connections

Updating unmanaged specs may cause load_connections() to be called,
and the keyfile plugin needs to be registered before that.
This commit is contained in:
Dan Williams 2011-02-02 20:32:15 -06:00
parent 2e0fb2ae4e
commit e2d297e5ff

View file

@ -1357,7 +1357,6 @@ nm_settings_new (const char *config_file,
g_object_unref (self);
return NULL;
}
unmanaged_specs_changed (NULL, self);
}
/* Add the keyfile plugin last */
@ -1365,6 +1364,8 @@ nm_settings_new (const char *config_file,
g_assert (keyfile_plugin);
add_plugin (self, NM_SYSTEM_CONFIG_INTERFACE (keyfile_plugin));
unmanaged_specs_changed (NULL, self);
dbus_g_connection_register_g_object (priv->bus, NM_DBUS_PATH_SETTINGS, G_OBJECT (self));
return self;
}