[virt-tools-list] [PATCH v2] app: Update warning msg in virt-viewer's window
Pavel Grunt
pgrunt at redhat.com
Tue Jan 10 09:29:19 UTC 2017
Looks good to me
On Thu, 2017-01-05 at 18:47 +0200, Snir Sheriber wrote:
> Information about connection issues during display
> activation will appear in virt-viewer's window
>
> Related: rhbz#1386630
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> src/virt-viewer-app.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index bf32315..2e7e193 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -1239,6 +1239,8 @@ virt_viewer_app_activate(VirtViewerApp *self,
> GError **error)
> ret = VIRT_VIEWER_APP_GET_CLASS(self)->activate(self, error);
>
> if (ret == FALSE) {
> + if(error != NULL && *error != NULL)
> + virt_viewer_app_show_status(self, (*error)->message);
> priv->connected = FALSE;
> } else {
> virt_viewer_app_show_status(self, _("Connecting to graphic
> server"));
More information about the virt-tools-list
mailing list