diff options
author | Mark Cottrell <mark.cottrell@taitradio.com> | 2013-10-15 09:05:21 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2013-10-15 09:07:40 -0700 |
commit | cd19c5a64d14e4cbb90e08648aa45cd76543deed (patch) | |
tree | f638e92943556229cdf7f1fc450ed0b00bbcbf4b /grc/gui/BlockTreeWindow.py | |
parent | d5f0cec440ef2848992ce0ae34bfe73bb0c9772a (diff) |
runtime: fix disconnecting a msg port on a hier_block2
It seems that when you call msg_connect, the call to message_port_sub
is not made until the flowgraph has been flattened, so the
subscription does not belong to the hier block, it belongs to the
block inside the hier block that has the message output. However, when
you call msg_disconnect, it simply attempts to call message_port_unsub
on on the hier block, which fails, as the hier block has no
subscriptions."
The fix simply checks if the source or destination blocks are
hierarchical, and if they are, resolves which block in the
hierarchical block has the message port, then calls message_port_unsub
with that block.
Diffstat (limited to 'grc/gui/BlockTreeWindow.py')
0 files changed, 0 insertions, 0 deletions