[gnome-control-center] network: do not show the IPv6 address if nm_device_get_dhcp6_config() failed



commit ef3c9d13156544df2fee82a58152225429801b4f
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 10 14:24:09 2011 +0000

    network: do not show the IPv6 address if nm_device_get_dhcp6_config() failed

 panels/network/cc-network-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 73351f9..64e6cdb 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -953,6 +953,11 @@ nm_device_refresh_item_ui (CcNetworkPanel *panel, NMDevice *device)
                                        "ip6",
                                        nm_dhcp6_config_get_one_option (config_dhcp6,
                                                                        "ip_address"));
+        } else {
+                panel_set_widget_data (panel,
+                                       sub_pane,
+                                       "ip6",
+                                        NULL);
         }
 out:
         if (aps_unique != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]