[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/02: grc: fix port type cache for empty t
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/02: grc: fix port type cache for empty types |
Date: |
Thu, 6 Nov 2014 19:39:14 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 8a8bfef084ed7a6ddc506f81690041d3b15a9540
Author: Sebastian Koslowski <address@hidden>
Date: Thu Nov 6 18:02:10 2014 +0100
grc: fix port type cache for empty types
---
grc/python/Port.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/grc/python/Port.py b/grc/python/Port.py
index 68e851f..cfeabf8 100644
--- a/grc/python/Port.py
+++ b/grc/python/Port.py
@@ -133,8 +133,8 @@ class Port(_Port, _GUIPort):
"""
Handle the port cloning for virtual blocks.
"""
- _Port.rewrite(self)
if self.is_type_empty():
+ self._type_evaluated = None
try: #clone type and vlen
source = self.resolve_empty_type()
self._type = str(source.get_type())
@@ -142,6 +142,7 @@ class Port(_Port, _GUIPort):
except: #reset type and vlen
self._type = ''
self._vlen = ''
+ _Port.rewrite(self)
def resolve_virtual_source(self):
if self.get_parent().is_virtual_sink(): return
_get_source_from_virtual_sink_port(self)