diff options
author | Dan Winship <danw@gnome.org> | 2014-07-25 08:41:11 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-07-25 08:44:24 -0400 |
commit | ae4b9f33df62fa3214d04b70ff006f32f2d0ac04 (patch) | |
tree | 7b81d7afe285cb8bd157843b92f0e0f80457245d | |
parent | f5bc4ed3331f6b32c5e5d7d500e742a5e7623644 (diff) | |
download | network-manager-applet-ae4b9f33df62fa3214d04b70ff006f32f2d0ac04.tar.gz |
connection-editor: allow IP4 "Disabled" method for more types
Allow disabling IPv4 on any type that supports IPv6.
-rw-r--r-- | src/connection-editor/page-ip4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connection-editor/page-ip4.c b/src/connection-editor/page-ip4.c index e35e8ac9..2e909c3c 100644 --- a/src/connection-editor/page-ip4.c +++ b/src/connection-editor/page-ip4.c @@ -45,6 +45,7 @@ #include "page-ip4.h" #include "ip4-routes-dialog.h" +#include "connection-helpers.h" G_DEFINE_TYPE (CEPageIP4, ce_page_ip4, CE_TYPE_PAGE) @@ -189,9 +190,8 @@ ip4_private_init (CEPageIP4 *self, NMConnection *connection) -1); } - /* At the moment, Disabled is only supported for Ethernet & Wi-Fi */ - if ( priv->connection_type == NM_TYPE_SETTING_WIRED - || priv->connection_type == NM_TYPE_SETTING_WIRELESS) { + /* Disabled is only supported for types that also support IPv6 */ + if (connection_supports_ip6 (connection)) { gtk_list_store_append (priv->method_store, &iter); gtk_list_store_set (priv->method_store, &iter, METHOD_COL_NAME, _("Disabled"), |