mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 23:00:54 +00:00
"Unable to connect to the graphic server" error on guest shutdown
In virt_viewer_app_activate(), priv->connected is set to FALSE when the connect/active is successfull. However, we rely on it to know whether the virt_viewer_app_disconnected() is an error, so only set it to FALSE when connection failed. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=875697
This commit is contained in:
parent
a4805a3bb8
commit
399aae55aa
@ -890,15 +890,17 @@ virt_viewer_app_activate(VirtViewerApp *self)
|
||||
|
||||
ret = VIRT_VIEWER_APP_GET_CLASS(self)->activate(self);
|
||||
|
||||
if (ret != -1) {
|
||||
virt_viewer_app_show_status(self, _("Connecting to graphic server"));
|
||||
if (ret == -1) {
|
||||
priv->connected = FALSE;
|
||||
} else {
|
||||
virt_viewer_app_show_status(self, _("Connecting to graphic server"));
|
||||
priv->cancelled = FALSE;
|
||||
priv->active = TRUE;
|
||||
priv->grabbed = FALSE;
|
||||
virt_viewer_app_update_title(self);
|
||||
}
|
||||
|
||||
priv->grabbed = FALSE;
|
||||
virt_viewer_app_update_title(self);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user