network: Update VPN empty label status after removing VPN connection
Being the VPN list actually a collection of listboxes, this function ensures it looks alright in other places. However the case of removing all VPN connections till we're back empty was missed.
This commit is contained in:
parent
9f018a2d62
commit
2ff526ecfb
1 changed files with 1 additions and 0 deletions
|
@ -620,6 +620,7 @@ client_connection_removed_cb (CcNetworkPanel *self, NMConnection *connection)
|
|||
if (net_vpn_get_connection (vpn) == connection) {
|
||||
g_ptr_array_remove (self->vpns, vpn);
|
||||
gtk_widget_destroy (GTK_WIDGET (vpn));
|
||||
update_vpn_section (self);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue