summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-10-11 10:16:02 -0700
committerJoshua Lock <josh@linux.intel.com>2011-10-11 10:16:51 -0700
commitdb59297aa1861614ffaea4295b9b054baa8a12b9 (patch)
treea46572f0f553d1bb3c36e2bcfa74dc3a549dc1d7
parentdca46cc2e1c75b6add2c4801e2994a4812745f5b (diff)
downloadbitbake-db59297aa1861614ffaea4295b9b054baa8a12b9.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] Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--lib/bb/ui/hob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index 71ea88acd..0fcaad54a 100644
--- a/lib/bb/ui/hob.py
+++ b/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