Re: [PATCH v2] app: Update warning msg in virt-viewer's window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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"));

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux