commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/09: grc: ignore unknown block keys when


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/09: grc: ignore unknown block keys when pasting blocks
Date: Sun, 21 Feb 2016 15:39:12 +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 252f6823fb24fa73ccbcbd6ec9ff07d880635d57
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Feb 17 19:39:52 2016 +0100

    grc: ignore unknown block keys when pasting blocks
---
 grc/gui/FlowGraph.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/grc/gui/FlowGraph.py b/grc/gui/FlowGraph.py
index 04c2f9d..63fd841 100644
--- a/grc/gui/FlowGraph.py
+++ b/grc/gui/FlowGraph.py
@@ -191,6 +191,8 @@ class FlowGraph(Element):
             block_key = block_n.find('key')
             if block_key == 'options': continue
             block = self.get_new_block(block_key)
+            if not block:
+                continue  # unknown block was pasted (e.g. dummy block)
             selected.add(block)
             #set params
             params_n = block_n.findall('param')



reply via email to

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