commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/08: grc: no block alias for variables


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/08: grc: no block alias for variables
Date: Wed, 29 Apr 2015 21:53:06 +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 4eb67da4b980ec22252391b62c7c6e01ead5d883
Author: Sebastian Koslowski <address@hidden>
Date:   Thu Apr 9 17:03:15 2015 +0200

    grc: no block alias for variables
---
 grc/base/Block.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/grc/base/Block.py b/grc/base/Block.py
index cadff12..afe326bb 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -141,8 +141,9 @@ class Block(Element):
                                      and (self._key != "virtual_sink") \
                                      and (self._key != "pad_source") \
                                      and (self._key != "pad_sink"))
+        is_variable = self._key.startswith('variable')
 
-        if is_not_virtual_or_pad:
+        if is_not_virtual_or_pad and not is_variable:
             self.get_params().append(self.get_parent().get_parent().Param(
                 block=self,
                 n=odict({'name': 'Block Alias',



reply via email to

[Prev in Thread] Current Thread [Next in Thread]