bitbake: hob/packageselectionpage:cancel button should redirect to Image conf screen

Cancel button brings you to Image configuration page.

[YOCTO #3105]
(Bitbake rev: 88cd9586f0f6a413c1a6800b3e57444f453afb73)

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Cristiana Voicu 2012-09-24 16:30:59 +03:00 committed by Richard Purdie
parent a0bdb64a18
commit e8738b83b7
1 changed files with 3 additions and 3 deletions

View File

@ -187,12 +187,12 @@ class PackageSelectionPage (HobPage):
self.builder.build_image()
def back_button_clicked_cb(self, button):
if self.builder.current_step == self.builder.PACKAGE_GENERATED:
self.builder.show_configuration()
elif self.builder.previous_step == self.builder.IMAGE_GENERATED:
if self.builder.previous_step == self.builder.IMAGE_GENERATED:
self.builder.restore_initial_selected_packages()
self.refresh_selection()
self.builder.show_image_details()
else:
self.builder.show_configuration()
def _expand_all(self):
for tab in self.tables: