summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-10-06 15:34:18 +0200
committerThomas Haller <thaller@redhat.com>2016-10-06 20:41:20 +0200
commit34f65e6ef8e827a02719b187002938111facca69 (patch)
treea13f8c86c7aaa8ee9232016eb392a7cee54f887f
parent4d194c38339e7851fe54e7f336773370e2dbbeed (diff)
downloadNetworkManager-34f65e6ef8e827a02719b187002938111facca69.tar.gz
keyfile: fix calling parent implementation in NMSKeyfilePlugin:constructed()
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-plugin.c b/src/settings/plugins/keyfile/nms-keyfile-plugin.c
index d298b1908d..5a7ae4f6c7 100644
--- a/src/settings/plugins/keyfile/nms-keyfile-plugin.c
+++ b/src/settings/plugins/keyfile/nms-keyfile-plugin.c
@@ -570,6 +570,7 @@ nms_keyfile_plugin_init (NMSKeyfilePlugin *plugin)
{
NMSKeyfilePluginPrivate *priv = NMS_KEYFILE_PLUGIN_GET_PRIVATE (plugin);
+ priv->config = g_object_ref (nm_config_get ());
priv->connections = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
}
@@ -578,7 +579,8 @@ constructed (GObject *object)
{
NMSKeyfilePluginPrivate *priv = NMS_KEYFILE_PLUGIN_GET_PRIVATE ((NMSKeyfilePlugin *) object);
- priv->config = g_object_ref (nm_config_get ());
+ G_OBJECT_CLASS (nms_keyfile_plugin_parent_class)->constructed (object);
+
if (nm_config_data_has_value (nm_config_get_data_orig (priv->config),
NM_CONFIG_KEYFILE_GROUP_KEYFILE,
NM_CONFIG_KEYFILE_KEY_KEYFILE_HOSTNAME,