Browse Source

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>
Joshua Lock 12 years ago
parent
commit
00fc1d7249
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/bb/ui/hob.py

+ 3 - 1
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