mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-02-12 21:57:29 +03:00
spice: do not show error on cancel/close of auth dialog
Mainly an issue for kiosk mode due the fact that it'll not quit the application on cancel. That means that authentication dialog can't really be canceled and showing an input error such as "wrong password" is misleading (no password should be taken in consideration on Cancel). Related: https://bugzilla.redhat.com/show_bug.cgi?id=1446161 Signed-off-by: Victor Toso <victortoso@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com> Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
5d9e6d2338
commit
6480e52f62
@ -724,6 +724,10 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel,
|
||||
&password);
|
||||
g_free(host);
|
||||
if (!ret) {
|
||||
/* ret is false when dialog did not return GTK_RESPONSE_OK. We
|
||||
* should ignore auth error dialog if user has cancelled or closed
|
||||
* the dialog */
|
||||
self->priv->pass_try = 0;
|
||||
g_signal_emit_by_name(session, "session-cancelled");
|
||||
} else {
|
||||
gboolean openfd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user