From 4aa6a8e9a66d7e7ea859ae40cb69a65cd95f4911 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 23 Sep 2011 16:32:52 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/hob.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake') 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): 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 -- cgit v1.2.3-54-g00ecf