Hob: reset the selection if switch to a new base image

(Bitbake rev: 947f1a3cb7ca81608fd04b7a5d7ced5f4da47d05)

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dongxiao Xu 2012-03-16 16:48:11 +08:00 committed by Richard Purdie
parent 8a2f86ad90
commit 34b0f7ac3d
1 changed files with 1 additions and 0 deletions

View File

@ -715,6 +715,7 @@ class RecipeListModel(gtk.ListStore):
def set_selected_image(self, img):
if not img:
return
self.reset()
path = self.find_path_for_item(img)
self.include_item(item_path=path,
binb="User Selected",