From a209853b61970254a17e06a68849848850c60fe0 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 16 Sep 2011 13:16:27 -0400 Subject: grc: one line fix to fix port duplicator when removing ports was an issue when removing more than one port --- grc/python/Block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/python') diff --git a/grc/python/Block.py b/grc/python/Block.py index 14a5859e4..424706d68 100644 --- a/grc/python/Block.py +++ b/grc/python/Block.py @@ -108,7 +108,7 @@ class Block(_Block, _GUIBlock): if nports == num_ports: continue #remove excess ports and connections if nports < num_ports: - for key in map(str, range(index_first+nports, index_first+num_ports)): + for key in reversed(map(str, range(index_first+nports, index_first+num_ports))): remove_port(get_ports, get_port, key) continue #add more ports -- cgit