aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-07-03 19:15:55 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-04 14:41:41 +0100
commit73801f571e040dcdfeb15a15b9a484cbefaae70c (patch)
tree5fcb0a23dc180921153eb9aedfa433f9fc12f7a4
parent2ba23df5fad4b94d38a6aed97f7822226d72eb89 (diff)
downloadbitbake-73801f571e040dcdfeb15a15b9a484cbefaae70c.tar.gz
bitbake-73801f571e040dcdfeb15a15b9a484cbefaae70c.tar.bz2
bitbake-73801f571e040dcdfeb15a15b9a484cbefaae70c.zip
Hob: fixed some variables not clean bug in detail page
[YOCTO #2679] Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/ui/crumbs/imagedetailspage.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/bb/ui/crumbs/imagedetailspage.py b/lib/bb/ui/crumbs/imagedetailspage.py
index 07fc3a81..596fb851 100755
--- a/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/lib/bb/ui/crumbs/imagedetailspage.py
@@ -232,7 +232,7 @@ class ImageDetailsPage (HobPage):
is_runnable = self.create_bottom_buttons(self.buttonlist, self.toggled_image)
- #if self.build_succeeded:
+ # Generated image files info
varlist = ["Name: ", "FileCreated: ", "Directory: "]
vallist = []
@@ -428,7 +428,7 @@ class ImageDetailsPage (HobPage):
if fileitem['is_toggled']:
if fileitem['action_attr'] == 'run':
self.builder.runqemu_image(fileitem['name'], self.sel_kernel)
- elif image_attr == 'deploy':
+ elif fileitem['action_attr'] == 'deploy':
self.builder.deploy_image(fileitem['name'])
def table_selected_cb(self, tbutton, image):
@@ -445,14 +445,6 @@ class ImageDetailsPage (HobPage):
label = ((self.kernel_detail.get_children()[0]).get_children()[0]).get_children()[0]
label.set_markup(markup)
- def row_activated_cb(self, table, model, path):
- if not model:
- return
- iter = model.get_iter(path)
- image_name = model[path][0]
- if iter and model[path][2] == True:
- self.builder.runqemu_image(image_name, self.sel_kernel)
-
def create_bottom_buttons(self, buttonlist, image_name):
# Create the buttons at the bottom
created = False
@@ -536,7 +528,7 @@ class ImageDetailsPage (HobPage):
def deploy_button_clicked_cb(self, button):
if self.toggled_image:
- if self.build_succeeded or self.num_toggled > 1:
+ if self.num_toggled > 1:
self.set_sensitive(False)
self.show_builded_images_dialog(None, "Deploy image")
self.set_sensitive(True)