[virt-tools-list] [PATCH virt-viewer 06/11] ovirt-foreign-menu: Notify of new files even if list did not change

Christophe Fergeau cfergeau at redhat.com
Tue Jul 19 15:43:41 UTC 2016


Why?

On Sun, Jul 17, 2016 at 11:13:06PM -0300, Eduardo Lima (Etrunko) wrote:
> Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
> ---
>  src/ovirt-foreign-menu.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c
> index 24b5af2..75154bb 100644
> --- a/src/ovirt-foreign-menu.c
> +++ b/src/ovirt-foreign-menu.c
> @@ -428,12 +428,15 @@ static void ovirt_foreign_menu_set_files(OvirtForeignMenu *menu,
>  
>      if ((it == NULL) && (it2 == NULL)) {
>          /* sorted_files and menu->priv->files content was the same */
> +        g_debug("Iso list unchanged");
>          g_list_free_full(sorted_files, (GDestroyNotify)g_free);
> -        return;
> +        goto end;
>      }
>  
>      g_list_free_full(menu->priv->iso_names, (GDestroyNotify)g_free);
>      menu->priv->iso_names = sorted_files;
> +
> +end:
>      g_object_notify(G_OBJECT(menu), "files");
>  }
>  
> -- 
> 2.7.4
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20160719/daeb6443/attachment.sig>


More information about the virt-tools-list mailing list