app: Update warning msg in virt-viewer's window

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

Related: rhbz#1386630
This commit is contained in:
Snir Sheriber 2017-01-05 18:47:59 +02:00 committed by Pavel Grunt
parent 965286d699
commit d7ef44d44f

View File

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