Skip to contentSkip to conversation

Joshua Lock : hob: fix backtrace when dismissing open dialog

PATCH [email protected] 1 participant 1 message Oct 27, 2011

lore
Share & tools
lore
#0 lore raw
Module: bitbake.git
Branch: master
Commit: db59297aa1861614ffaea4295b9b054baa8a12b9
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=db59297aa1861614ffaea4295b9b054baa8a12b9
Author: Joshua Lock <[email protected]>
Date:   Tue Oct 11 10:16:02 2011 -0700

hob: fix backtrace when dismissing open dialog

Clearly a logic/indentation error - we should only try and load the recipe should the file-chooser return OK.

Fixes [YOCTO #1668]

---

 lib/bb/ui/hob.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
lib/bb/ui/hob.py +2 -2
index 71ea88a..0fcaad5 100644
@@ -400,9 +400,9 @@ class MainWindow (gtk.Window):
         if response == gtk.RESPONSE_OK:
             rep.loadRecipe(recipe)
             self.save_path = recipe
+            self.model.load_image_rep(rep)
+            self.dirty = False
         chooser.destroy()
-        self.model.load_image_rep(rep)
-        self.dirty = False
 
     def bake_clicked_cb(self, button):
         build_image = True