Commit 9272d54a authored by Beniamino Galvani's avatar Beniamino Galvani

editor: register to the connection-removed signal only once

The callback was called multiple times for a single removal because it
was registered multiple times.

Fixes: 4d7546e7
parent 9ef81a08
Pipeline #90423 passed with stages
in 16 minutes and 19 seconds
......@@ -981,7 +981,6 @@ connection_added (NMClient *client,
gtk_tree_path_free (path);
}
g_signal_connect (client, NM_CLIENT_CONNECTION_REMOVED, G_CALLBACK (connection_removed), self);
g_signal_connect (connection, NM_CONNECTION_CHANGED, G_CALLBACK (connection_changed), self);
gtk_tree_model_filter_refilter (priv->filter);
}
......@@ -1011,6 +1010,10 @@ nm_connection_list_new (void)
NM_CLIENT_CONNECTION_ADDED,
G_CALLBACK (connection_added),
list);
g_signal_connect (priv->client,
NM_CLIENT_CONNECTION_REMOVED,
G_CALLBACK (connection_removed),
list);
add_connection_buttons (list);
initialize_treeview (list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment