commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 02/04: grc: fix docstring update error with


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/04: grc: fix docstring update error with empty categories
Date: Mon, 25 Jul 2016 15:46: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 b42d727c5c3a28d0b0b94ba1b03a1328315b43b9
Author: Sebastian Koslowski <address@hidden>
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)
 



reply via email to

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