Blame SOURCES/0004-app-Update-warning-msg-in-virt-viewer-s-window.patch

140d58
From 2dd0d5bffb0f24936d1f646cf94cf22fc8d7b571 Mon Sep 17 00:00:00 2001
140d58
From: Snir Sheriber <ssheribe@redhat.com>
140d58
Date: Thu, 5 Jan 2017 18:47:59 +0200
140d58
Subject: [PATCH 04/26] app: Update warning msg in virt-viewer's window
140d58
140d58
Information about connection issues during display
140d58
activation will appear in virt-viewer's window
140d58
140d58
Related: rhbz#1386630
140d58
---
140d58
 src/virt-viewer-app.c | 2 ++
140d58
 1 file changed, 2 insertions(+)
140d58
140d58
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
140d58
index bf32315..2e7e193 100644
140d58
--- a/src/virt-viewer-app.c
140d58
+++ b/src/virt-viewer-app.c
140d58
@@ -1239,6 +1239,8 @@ virt_viewer_app_activate(VirtViewerApp *self, GError **error)
140d58
     ret = VIRT_VIEWER_APP_GET_CLASS(self)->activate(self, error);
140d58
 
140d58
     if (ret == FALSE) {
140d58
+        if(error != NULL && *error != NULL)
140d58
+            virt_viewer_app_show_status(self, (*error)->message);
140d58
         priv->connected = FALSE;
140d58
     } else {
140d58
         virt_viewer_app_show_status(self, _("Connecting to graphic server"));
140d58
-- 
140d58
2.12.0
140d58