[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 03/21: grc: disconnect hidden blocks
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 03/21: grc: disconnect hidden blocks |
Date: |
Fri, 30 Oct 2015 21:11:25 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit c1449fdd6cc685704038210e9beca910a80677ce
Author: Sebastian Koslowski <address@hidden>
Date: Wed Oct 28 20:55:43 2015 +0100
grc: disconnect hidden blocks
---
grc/python/Block.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/grc/python/Block.py b/grc/python/Block.py
index 303aa85..5289d57 100644
--- a/grc/python/Block.py
+++ b/grc/python/Block.py
@@ -118,11 +118,14 @@ class Block(_Block, _GUIBlock):
"""
_Block.rewrite(self)
- # adjust nports
+ # adjust nports, disconnect hidden ports
for ports in (self.get_sources(), self.get_sinks()):
for i, master_port in enumerate(ports):
nports = master_port.get_nports() or 1
num_ports = 1 + len(master_port.get_clones())
+ if master_port.get_hide():
+ for connection in master_port.get_connections():
+ self.get_parent().remove_element(connection)
if not nports and num_ports == 1: # not a master port and no
left-over clones
continue
# remove excess cloned ports
- [Commit-gnuradio] [gnuradio] branch master updated (1aface8 -> f8a84eb), git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 03/21: grc: disconnect hidden blocks,
git <=
- [Commit-gnuradio] [gnuradio] 01/21: blocks: Add Complex to IChar block, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 13/21: qtgui: time display: fixes a threading issue., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 02/21: grc: fix port placement for hidden ports, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 06/21: qtgui: whitespace and line formatting, git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 12/21: qtgui: histogram plotter supports PDU message plotting., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 08/21: qtgui: Better support for waterfall PDU message port., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 05/21: qtgui: added documentation describing pdus message input port., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 04/21: qtgui: Throw an error if the PDU is not a multiple of the fft size., git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 17/21: Merge branch 'maint', git, 2015/10/30
- [Commit-gnuradio] [gnuradio] 18/21: Merge remote-tracking branch 'miek/complex-to-ichar', git, 2015/10/30