Patchwork [bitbake-devel,1/3] Hob: reset the selection if switch to a new base image

login
register
mail settings
Submitter Dongxiao Xu
Date March 16, 2012, 8:48 a.m.
Message ID <39f4956a5fee435a865ac48052aa1bb4808e3ec7.1331887394.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/23627/
State New
Headers show

Comments

Dongxiao Xu - March 16, 2012, 8:48 a.m.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 lib/bb/ui/crumbs/hoblistmodel.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Joshua Lock - March 19, 2012, 8:18 p.m.
On 16/03/12 01:48, Dongxiao Xu wrote:
> Signed-off-by: Dongxiao Xu<dongxiao.xu@intel.com>

Signed-off-by: Joshua Lock <josh@linux.intel.com>

> ---
>   lib/bb/ui/crumbs/hoblistmodel.py |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py
> index caf31bc..6e6983c 100644
> --- a/lib/bb/ui/crumbs/hoblistmodel.py
> +++ b/lib/bb/ui/crumbs/hoblistmodel.py
> @@ -715,6 +715,7 @@ class RecipeListModel(gtk.ListStore):
>       def set_selected_image(self, img):
>           if img == None:
>               return
> +        self.reset()
>           path = self.find_path_for_item(img)
>           self.include_item(item_path=path,
>                             binb="User Selected",

Patch

diff --git a/lib/bb/ui/crumbs/hoblistmodel.py b/lib/bb/ui/crumbs/hoblistmodel.py
index caf31bc..6e6983c 100644
--- a/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/lib/bb/ui/crumbs/hoblistmodel.py
@@ -715,6 +715,7 @@  class RecipeListModel(gtk.ListStore):
     def set_selected_image(self, img):
         if img == None:
             return
+        self.reset()
         path = self.find_path_for_item(img)
         self.include_item(item_path=path,
                           binb="User Selected",