[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-commit
Subject:    [Commit-gnuradio] [gnuradio] 02/04: grc: fix docstring update error with empty categories
From:       git () gnuradio ! org
Date:       2016-07-25 15:46:06
Message-ID: 20160725154606.A7C611A82A5 () hertz ! gnuradio ! org
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit b42d727c5c3a28d0b0b94ba1b03a1328315b43b9
Author: Sebastian Koslowski <koslowski@kit.edu>
Date:   Mon Jul 4 12:27:23 2016 +0200

    grc: fix docstring update error with empty categories
---
 grc/gui/BlockTreeWindow.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index f49eb6c..f0373ea 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -202,10 +202,10 @@ class BlockTreeWindow(gtk.VBox):
         """Update the documentation column of every block"""
 
         def update_doc(model, _, iter_):
-            if model.iter_has_child(iter_):
-                return  # category node, no doc string
             key = model.get_value(iter_, KEY_INDEX)
-            block = self.platform.blocks[key]
+            if not key:
+                return  # category node, no doc string
+            block = self.platform.get_block(key)
             doc = Utils.parse_template(DOC_MARKUP_TMPL, doc=block.get_doc())
             model.set_value(iter_, DOC_INDEX, doc)
 

_______________________________________________
Commit-gnuradio mailing list
Commit-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/commit-gnuradio
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic