diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-23 16:32:52 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-25 16:25:06 +0100 |
commit | e271de0fabac69e1599de117856a3ae705470f21 (patch) | |
tree | 7816f83fa2bfbccf679dc7dd129cf6ce43bfd3b8 /bitbake/lib/bb/ui/hob.py | |
parent | 7b578b9b735441c6a2a8200c5d4c5a719a2c5838 (diff) | |
download | 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/lib/bb/ui/hob.py')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 4 |
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 |