mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 01:20:12 +01:00
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).
This commit is contained in:
parent
41ada32127
commit
2940ef7a63
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue