Patchwork [bitbake-devel] hob/packageselectionpage:cancel button should redirect to Image conf screen

login
register
mail settings
Submitter Cristiana Voicu
Date Sept. 24, 2012, 1:30 p.m.
Message ID <1348493459-18620-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/37123/
State New
Headers show

Comments

Cristiana Voicu - Sept. 24, 2012, 1:30 p.m.
Cancel button brings you to Image configuration page.

[YOCTO #3105]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/packageselectionpage.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 7e7828b..46bd014 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -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: