Skip to contentSkip to conversation

Hob: fixed a little view issue about package selection page

PATCH In review Liming An 2 participants 2 messages Apr 16, 2012 1 message not in the archive

lore
Share & tools
lore

Liming An

author
#1 lore raw

PATCH 1/1 Hob: fixed a little view issue about package selection page

In reply to a message not in the archive

In package selection page, treeview cell data callback function not cover the 'else' case, so parent item will render the pervious value.

---
 bitbake/lib/bb/ui/crumbs/hobwidget.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
bitbake/lib/bb/ui/crumbs/hobwidget.py +2 -1
index a42cdec..8cbd6aa 100644
@@ -175,7 +175,8 @@ class HobViewTable (gtk.VBox):
         if binb:
             bin = binb.split(', ')
             cell.set_property('text', bin[0])
-
+        else:
+            cell.set_property('text', "")
         return True
 
     def set_model(self, tree_model):
Signature · 1 line
1.7.5.4
#2 lore raw
Quoted 3 lines · Liming An

In package selection page, treeview cell data callback function not cover the 'else' case, so parent item will render the pervious value.

Good catch, thanks!

Quoted 18 lines
---
  bitbake/lib/bb/ui/crumbs/hobwidget.py |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
bitbake/lib/bb/ui/crumbs/hobwidget.py +2 -1
index a42cdec..8cbd6aa 100644
@@ -175,7 +175,8 @@ class HobViewTable (gtk.VBox):
          if binb:
              bin = binb.split(', ')
              cell.set_property('text', bin[0])
-
+        else:
+            cell.set_property('text', "")
          return True
 
      def set_model(self, tree_model):
Signature · 3 lines
Joshua Lock
        Yocto Project
        Intel Open Source Technology Centre