diff options
author | Thomas Haller <thaller@redhat.com> | 2016-04-29 17:29:21 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-04-29 17:29:21 +0200 |
commit | 047ed40e28a343221c2ce9f6e863158089bad995 (patch) | |
tree | 9662372ccdb99ca912ff0ceaaafb6481c3a78076 | |
parent | 908085a0ad967f355bd814e2f93dc0f6c5f57741 (diff) | |
download | network-manager-applet-047ed40e28a343221c2ce9f6e863158089bad995.tar.gz |
c-e: always add VPN connections to list even if there are no VPN plugins
Currently, when the user has no plugins installed all VPN connections will
be hidden.
But if at least one plugin is present, *all* VPN connections are shown --
regadless their type. For consistency, we should either always show all
VPN connections (even if we are unable to edit them) or we should only
show those for which we have a plugin present.
Do the former, as it is useful for the user to see that he has some
connections.
-rw-r--r-- | src/connection-editor/connection-helpers.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c index 4abaf37d..9cc789c3 100644 --- a/src/connection-editor/connection-helpers.c +++ b/src/connection-editor/connection-helpers.c @@ -111,9 +111,7 @@ get_connection_type_list (void) add_type_data_virtual (array, _("Bridge"), bridge_connection_new, NM_TYPE_SETTING_BRIDGE); add_type_data_virtual (array, _("VLAN"), vlan_connection_new, NM_TYPE_SETTING_VLAN); - /* Add "VPN" only if there are plugins */ - if (vpn_get_plugins ()) - add_type_data_virtual (array, _("VPN"), vpn_connection_new, NM_TYPE_SETTING_VPN); + add_type_data_virtual (array, _("VPN"), vpn_connection_new, NM_TYPE_SETTING_VPN); g_array_sort (array, sort_types); |