From 2eb29525de3634160021dac0693e01869dd4baf3 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Mon, 10 Apr 2023 08:13:01 -0700 Subject: [PATCH] gui: fix issue deleting nodes/links attached to rj45 nodes --- daemon/core/gui/graph/edges.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/core/gui/graph/edges.py b/daemon/core/gui/graph/edges.py index 9032659c..0e56781d 100644 --- a/daemon/core/gui/graph/edges.py +++ b/daemon/core/gui/graph/edges.py @@ -751,9 +751,9 @@ class CanvasEdge(Edge): self.src.edges.discard(self) if self.dst: 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] - 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] if self.src.is_wireless(): self.dst.delete_antenna()