summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-12-17 11:31:23 -0500
committerDan Winship <danw@gnome.org>2013-12-17 12:51:18 -0500
commit2940ef7a6300be94c126879162eae3b98393ffab (patch)
tree0ab6ba119a555b2123466419de867e2c20484286
parent41ada3212783c4e724942bd2a504fbf8a9e96e18 (diff)
downloadNetworkManager-2940ef7a6300be94c126879162eae3b98393ffab.tar.gz
tui: fix the "Device" entry on currently-active virtual devices
Virtual device types can only have an ifname in the "Device" entry, but the code was accidentally filling in the MAC address too if the device currently existed (which then made the entry value invalid).
-rw-r--r--tui/nmt-device-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tui/nmt-device-entry.c b/tui/nmt-device-entry.c
index 3a418fd13a..7ce6d7d420 100644
--- a/tui/nmt-device-entry.c
+++ b/tui/nmt-device-entry.c
@@ -269,7 +269,7 @@ update_entry (NmtDeviceEntry *deventry)
if (!ifname && mac_device)
ifname = nm_device_get_iface (mac_device);
- if (!mac && ifname_device)
+ if (!mac && ifname_device && (priv->hardware_type != G_TYPE_NONE))
g_object_get (G_OBJECT (ifname_device), "hw-address", &mac, NULL);
if (ifname_device && mac_device && ifname_device != mac_device) {