[virt-tools-list] [PATCH virt-viewer] Always set ask-quit setting

Jonathon Jongsma jjongsma at redhat.com
Fri Jul 11 16:46:50 UTC 2014


ACK


----- Original Message -----
> From: "Marc-André Lureau" <marcandre.lureau at gmail.com>
> To: virt-tools-list at redhat.com
> Sent: Friday, July 11, 2014 10:06:37 AM
> Subject: [virt-tools-list] [PATCH virt-viewer] Always set ask-quit setting
> 
> Avoid creating empty settings files, always set the ask-quit key.
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1006737
> ---
>  src/virt-viewer-app.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index 1c97121..89289a0 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -408,9 +408,8 @@ virt_viewer_app_maybe_quit(VirtViewerApp *self,
> VirtViewerWindow *window)
>  
>          gboolean dont_ask = FALSE;
>          g_object_get(check, "active", &dont_ask, NULL);
> -        if (dont_ask)
> -            g_key_file_set_boolean(self->priv->config,
> -                    "virt-viewer", "ask-quit", FALSE);
> +        g_key_file_set_boolean(self->priv->config,
> +                    "virt-viewer", "ask-quit", !dont_ask);
>  
>          gtk_widget_destroy(dialog);
>          switch (result) {
> --
> 1.9.3
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
> 




More information about the virt-tools-list mailing list