diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-10-11 10:16:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:16:11 +0000 |
commit | 13590b23c6e4ceda2cfc0fdcfea2b5e4d2efffee (patch) | |
tree | 72935c346aa114108d0433ec2fdc28168d2f2b6d | |
parent | 2c3861ee6837a99927b8ebfcd22ca09cedeae314 (diff) | |
download | poky-13590b23c6e4ceda2cfc0fdcfea2b5e4d2efffee.tar.gz |
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]
(Bitbake rev: db59297aa1861614ffaea4295b9b054baa8a12b9)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index 71ea88acd7..0fcaad54a7 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -400,9 +400,9 @@ class MainWindow (gtk.Window): | |||
400 | if response == gtk.RESPONSE_OK: | 400 | if response == gtk.RESPONSE_OK: |
401 | rep.loadRecipe(recipe) | 401 | rep.loadRecipe(recipe) |
402 | self.save_path = recipe | 402 | self.save_path = recipe |
403 | self.model.load_image_rep(rep) | ||
404 | self.dirty = False | ||
403 | chooser.destroy() | 405 | chooser.destroy() |
404 | self.model.load_image_rep(rep) | ||
405 | self.dirty = False | ||
406 | 406 | ||
407 | def bake_clicked_cb(self, button): | 407 | def bake_clicked_cb(self, button): |
408 | build_image = True | 408 | build_image = True |