summaryrefslogtreecommitdiff
path: root/grc/python/Block.py
diff options
context:
space:
mode:
authorJosh Blum2011-09-16 13:16:27 -0400
committerTom Rondeau2011-09-22 14:17:30 -0400
commita209853b61970254a17e06a68849848850c60fe0 (patch)
treede794b079eff8671a5ebba1ab4ebe2d80f72ff3d /grc/python/Block.py
parentc091c56ee98f0f2eca891ebc23524925f7d1a74a (diff)
downloadgnuradio-a209853b61970254a17e06a68849848850c60fe0.tar.gz
gnuradio-a209853b61970254a17e06a68849848850c60fe0.tar.bz2
gnuradio-a209853b61970254a17e06a68849848850c60fe0.zip
grc: one line fix to fix port duplicator when removing ports
was an issue when removing more than one port
Diffstat (limited to 'grc/python/Block.py')
-rw-r--r--grc/python/Block.py2
1 files changed, 1 insertions, 1 deletions
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