summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-10-11 10:16:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-10-24 17:35:42 +0100
commite9f66d981ad7ac726988842490192b9b19920445 (patch)
treebb5c1890421222b1bc07ff7d9af4c8d81d4074e5 /bitbake
parentbbb45b656cc39764d912f04ccad6304af58aed1a (diff)
downloadast2050-yocto-poky-e9f66d981ad7ac726988842490192b9b19920445.zip
ast2050-yocto-poky-e9f66d981ad7ac726988842490192b9b19920445.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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/hob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index 71ea88a..0fcaad5 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -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
OpenPOWER on IntegriCloud