diff options
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 07fc3a81e1..596fb851ec 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -232,7 +232,7 @@ class ImageDetailsPage (HobPage): | |||
232 | 232 | ||
233 | is_runnable = self.create_bottom_buttons(self.buttonlist, self.toggled_image) | 233 | is_runnable = self.create_bottom_buttons(self.buttonlist, self.toggled_image) |
234 | 234 | ||
235 | #if self.build_succeeded: | 235 | # Generated image files info |
236 | varlist = ["Name: ", "FileCreated: ", "Directory: "] | 236 | varlist = ["Name: ", "FileCreated: ", "Directory: "] |
237 | vallist = [] | 237 | vallist = [] |
238 | 238 | ||
@@ -428,7 +428,7 @@ class ImageDetailsPage (HobPage): | |||
428 | if fileitem['is_toggled']: | 428 | if fileitem['is_toggled']: |
429 | if fileitem['action_attr'] == 'run': | 429 | if fileitem['action_attr'] == 'run': |
430 | self.builder.runqemu_image(fileitem['name'], self.sel_kernel) | 430 | self.builder.runqemu_image(fileitem['name'], self.sel_kernel) |
431 | elif image_attr == 'deploy': | 431 | elif fileitem['action_attr'] == 'deploy': |
432 | self.builder.deploy_image(fileitem['name']) | 432 | self.builder.deploy_image(fileitem['name']) |
433 | 433 | ||
434 | def table_selected_cb(self, tbutton, image): | 434 | def table_selected_cb(self, tbutton, image): |
@@ -445,14 +445,6 @@ class ImageDetailsPage (HobPage): | |||
445 | label = ((self.kernel_detail.get_children()[0]).get_children()[0]).get_children()[0] | 445 | label = ((self.kernel_detail.get_children()[0]).get_children()[0]).get_children()[0] |
446 | label.set_markup(markup) | 446 | label.set_markup(markup) |
447 | 447 | ||
448 | def row_activated_cb(self, table, model, path): | ||
449 | if not model: | ||
450 | return | ||
451 | iter = model.get_iter(path) | ||
452 | image_name = model[path][0] | ||
453 | if iter and model[path][2] == True: | ||
454 | self.builder.runqemu_image(image_name, self.sel_kernel) | ||
455 | |||
456 | def create_bottom_buttons(self, buttonlist, image_name): | 448 | def create_bottom_buttons(self, buttonlist, image_name): |
457 | # Create the buttons at the bottom | 449 | # Create the buttons at the bottom |
458 | created = False | 450 | created = False |
@@ -536,7 +528,7 @@ class ImageDetailsPage (HobPage): | |||
536 | 528 | ||
537 | def deploy_button_clicked_cb(self, button): | 529 | def deploy_button_clicked_cb(self, button): |
538 | if self.toggled_image: | 530 | if self.toggled_image: |
539 | if self.build_succeeded or self.num_toggled > 1: | 531 | if self.num_toggled > 1: |
540 | self.set_sensitive(False) | 532 | self.set_sensitive(False) |
541 | self.show_builded_images_dialog(None, "Deploy image") | 533 | self.show_builded_images_dialog(None, "Deploy image") |
542 | self.set_sensitive(True) | 534 | self.set_sensitive(True) |