From 336aff24fd77c3bafc526f630cdbe56b9a7f9dfa Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 29 Jun 2021 08:51:16 +0100 Subject: [PATCH] Really fix split/join Signed-off-by: falkTX --- source/frontend/patchcanvas/patchcanvas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/frontend/patchcanvas/patchcanvas.py b/source/frontend/patchcanvas/patchcanvas.py index 6829bfc44..35704615b 100644 --- a/source/frontend/patchcanvas/patchcanvas.py +++ b/source/frontend/patchcanvas/patchcanvas.py @@ -518,7 +518,7 @@ def splitGroup(group_id): ports_data.append(port_dict) for connection in canvas.connection_list: - if (connection.group_in_id == group_id and port.port_in_id in port_list_ids) or \ + if (connection.group_in_id == group_id and connection.port_in_id in port_list_ids) or \ (connection.group_out_id == group_id and connection.port_out_id in port_list_ids): connection_dict = connection_dict_t() connection_dict.connection_id = connection.connection_id @@ -624,7 +624,7 @@ def joinGroup(group_id): ports_data.append(port_dict) for connection in canvas.connection_list: - if (connection.group_in_id == group_id and port.port_in_id in port_list_ids) or \ + if (connection.group_in_id == group_id and connection.port_in_id in port_list_ids) or \ (connection.group_out_id == group_id and connection.port_out_id in port_list_ids): connection_dict = connection_dict_t() connection_dict.connection_id = connection.connection_id