From 7f4dff3943c64e1d0e5d13b2ac915088dde165e6 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 25 Jan 2017 21:09:50 +0100 Subject: New upstream version 1.6.0 --- src/settings/nm-settings.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/settings') diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index 6a920d5c..35790a12 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -1112,8 +1112,10 @@ claim_connection (NMSettings *self, NMSettingsConnection *connection) openconnect_migrate_hack (NM_CONNECTION (connection)); g_object_ref (self); - g_signal_connect (connection, NM_SETTINGS_CONNECTION_REMOVED, - G_CALLBACK (connection_removed), self); + /* This one unexports the connection, it needs to run late to give the active + * connection a chance to deal with its reference to this settings connection. */ + g_signal_connect_after (connection, NM_SETTINGS_CONNECTION_REMOVED, + G_CALLBACK (connection_removed), self); g_signal_connect (connection, NM_SETTINGS_CONNECTION_UPDATED_INTERNAL, G_CALLBACK (connection_updated), self); g_signal_connect (connection, "notify::" NM_SETTINGS_CONNECTION_VISIBLE, -- cgit 1.3.0-6-gf8a5