From 2940ef7a6300be94c126879162eae3b98393ffab Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 17 Dec 2013 11:31:23 -0500 Subject: [PATCH] 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). --- tui/nmt-device-entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {