summaryrefslogtreecommitdiff
path: root/grc/core
diff options
context:
space:
mode:
authorChristophe Seguinot <christophe.seguinot@univ-lille.fr>2021-05-11 17:54:15 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-06-01 09:17:37 -0400
commitd3dc106719fa01f6432b3bafc839dc455f61d695 (patch)
tree838f6e82efb39054074ffdcbe0c63a905ead0917 /grc/core
parent763cc2fcab85fa01b1135e77c90eb40ebda571f4 (diff)
grc: fix Wrong order in the generated .py caused by uncorrect function without_gui_hint(block)
Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr> grc: fix Wrong order in the generated .py caused by uncorrect function without_gui_hint(block) Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr>
Diffstat (limited to 'grc/core')
-rw-r--r--grc/core/generator/top_block.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/grc/core/generator/top_block.py b/grc/core/generator/top_block.py
index cd4ccc1dd5..6653bc7ae0 100644
--- a/grc/core/generator/top_block.py
+++ b/grc/core/generator/top_block.py
@@ -196,14 +196,6 @@ class TopBlockGenerator(object):
]
blocks = expr_utils.sort_objects(blocks, operator.attrgetter('name'), _get_block_sort_text)
-
- # Ordering blocks : blocks with GUI Hint must be processed first to avoid PyQT5 superposing blocks
- def without_gui_hint(block):
- hint = block.params.get('gui_hint')
- return hint is None or not hint.get_value()
-
- blocks.sort(key=without_gui_hint)
-
blocks_make = []
for block in blocks:
make = block.templates.render('make')