gui: fix issue deleting nodes/links attached to rj45 nodes

This commit is contained in:
Blake Harnden 2023-04-10 08:13:01 -07:00
parent 03fe74c195
commit 2eb29525de

View file

@ -751,9 +751,9 @@ class CanvasEdge(Edge):
self.src.edges.discard(self) self.src.edges.discard(self)
if self.dst: if self.dst:
self.dst.edges.discard(self) self.dst.edges.discard(self)
if self.link.iface1: if self.link.iface1 and not nodeutils.is_rj45(self.src.core_node):
del self.src.ifaces[self.link.iface1.id] del self.src.ifaces[self.link.iface1.id]
if self.link.iface2: if self.link.iface2 and not nodeutils.is_rj45(self.dst.core_node):
del self.dst.ifaces[self.link.iface2.id] del self.dst.ifaces[self.link.iface2.id]
if self.src.is_wireless(): if self.src.is_wireless():
self.dst.delete_antenna() self.dst.delete_antenna()