summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-09-23 16:32:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-25 16:25:06 +0100
commite271de0fabac69e1599de117856a3ae705470f21 (patch)
tree7816f83fa2bfbccf679dc7dd129cf6ce43bfd3b8 /bitbake
parent7b578b9b735441c6a2a8200c5d4c5a719a2c5838 (diff)
downloadast2050-yocto-poky-e271de0fabac69e1599de117856a3ae705470f21.zip
ast2050-yocto-poky-e271de0fabac69e1599de117856a3ae705470f21.tar.gz
hob: store recipe path at load time
This fixes the internal dirtiness tracking such that if the Save menu item is selected after loading a recipe the existing file is updated rather than the user being prompted for the path to create a recipe at. (Bitbake rev: 00fc1d7249b5e217cc7c36ac71b63ddad1c5b769) 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, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index c016e44..71ea88a 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -396,8 +396,10 @@ class MainWindow (gtk.Window):
gtk.RESPONSE_OK))
response = chooser.run()
rep = BuildRep(None, None, None)
+ recipe = chooser.get_filename()
if response == gtk.RESPONSE_OK:
- rep.loadRecipe(chooser.get_filename())
+ rep.loadRecipe(recipe)
+ self.save_path = recipe
chooser.destroy()
self.model.load_image_rep(rep)
self.dirty = False
OpenPOWER on IntegriCloud