diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-23 16:32:52 -0700 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2011-09-23 16:32:52 -0700 |
commit | 00fc1d7249b5e217cc7c36ac71b63ddad1c5b769 (patch) | |
tree | 83121ffc23fd6ed97c2acc4111a5cbe9a65a4f50 /lib | |
parent | 656eafe0f2c9ec7730d33e15705b8c720f787c49 (diff) | |
download | bitbake-00fc1d7249b5e217cc7c36ac71b63ddad1c5b769.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.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/ui/hob.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py index c016e44bc..71ea88acd 100644 --- a/lib/bb/ui/hob.py +++ b/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 |