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

Snir Sheriber ssheribe at redhat.com
Thu Jan 5 16:47:59 UTC 2017


Information about connection issues during display
activation will appear in virt-viewer's window

Related: rhbz#1386630
---
 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"));
-- 
2.9.3




More information about the virt-tools-list mailing list