diff options
author | Terry May <terrydmay@gmail.com> | 2020-03-11 19:03:23 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-03-12 09:09:58 -0400 |
commit | 6119083da9a7686cf7c162b9c94927e2b66e4284 (patch) | |
tree | 117279eec291087f5884bc6d3643d82fe275f73b /grc | |
parent | 49073551052389203a9fa0bc1c06d5f81b7fd59a (diff) |
Allow grc to load flowgraphs with missing blocks
Diffstat (limited to 'grc')
-rw-r--r-- | grc/core/blocks/block.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/blocks/block.py b/grc/core/blocks/block.py index fe16f710cc..3c588a6359 100644 --- a/grc/core/blocks/block.py +++ b/grc/core/blocks/block.py @@ -1,5 +1,5 @@ """ -Copyright 2008-2015 Free Software Foundation, Inc. +Copyright 2008-2020 Free Software Foundation, Inc. This file is part of GNU Radio SPDX-License-Identifier: GPL-2.0-or-later @@ -77,7 +77,7 @@ class Block(Element): self.states = {'state': True, 'bus_source': False, 'bus_sink': False, 'bus_structure': None} - if 'cpp' in self.flags and not (self.is_virtual_source() or self.is_virtual_sink()): + if 'cpp' in self.flags and self.enabled and not (self.is_virtual_source() or self.is_virtual_sink()): self.orig_cpp_templates = self.cpp_templates # The original template, in case we have to edit it when transpiling to C++ self.current_bus_structure = {'source': None, 'sink': None} |