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-26 19:35:47 +0100
commit4aa6a8e9a66d7e7ea859ae40cb69a65cd95f4911 (patch)
treee8a67883fa50ebf015e45c12b262c7d5848b32bc /bitbake
parenta1f3aff1103209de338f6a8b6caba8b1b168a85d (diff)
downloadpoky-4aa6a8e9a66d7e7ea859ae40cb69a65cd95f4911.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 c016e44bc0..71ea88acd7 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -396,8 +396,10 @@ class MainWindow (gtk.Window):
396 gtk.RESPONSE_OK)) 396 gtk.RESPONSE_OK))
397 response = chooser.run() 397 response = chooser.run()
398 rep = BuildRep(None, None, None) 398 rep = BuildRep(None, None, None)
399 recipe = chooser.get_filename()
399 if response == gtk.RESPONSE_OK: 400 if response == gtk.RESPONSE_OK:
400 rep.loadRecipe(chooser.get_filename()) 401 rep.loadRecipe(recipe)
402 self.save_path = recipe
401 chooser.destroy() 403 chooser.destroy()
402 self.model.load_image_rep(rep) 404 self.model.load_image_rep(rep)
403 self.dirty = False 405 self.dirty = False