summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-app.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-06-17 16:37:54 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2015-06-19 14:39:48 -0500
commitc33f37efe334dde0554d0c33c33115a80d8b39d9 (patch)
tree7626fd6f3d21a1b19d56064859222205be290d2c /src/virt-viewer-app.c
parent999bd6767576d4adacc7ecb3f89bcfeb9f39e74e (diff)
downloadvirt-viewer-c33f37efe334dde0554d0c33c33115a80d8b39d9.tar.gz
virt-viewer-c33f37efe334dde0554d0c33c33115a80d8b39d9.tar.xz
virt-viewer-c33f37efe334dde0554d0c33c33115a80d8b39d9.zip
Don't wait for reconnect when user cancels auth
When starting virt-viewer with the --reconnect switch to a guest that has a password, if the user cancels the authentication dialog (e.g. pressing 'Esc'), the window will display "Waiting for guest domain to restart". Obviously, the domain will never restart because it's already running. After this fix, the application will simply exit when the user cancels authentication, even if the --reconnect switch is used.
Diffstat (limited to 'src/virt-viewer-app.c')
-rw-r--r--src/virt-viewer-app.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 3f10546..d762699 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -2566,6 +2566,11 @@ virt_viewer_app_get_option_group(void)
return group;
}
+gboolean virt_viewer_app_get_session_cancelled(VirtViewerApp *self)
+{
+ return self->priv->cancelled;
+}
+
/*
* Local variables:
* c-indent-level: 4