fb14a8b vnc: do not show error on cancel/close of auth dialog

Authored and Committed by victortoso 6 years ago
    vnc: do not show error on cancel/close of auth dialog
    
    Mainly a kiosk mode issue, similar to the spice fix in 6480e52f62b.
    
    This patch saves the cancel/close state of auth dialog from
    virt_viewer_auth_collect_credentials() in order to avoid an error
    dialog to pop up to user in kiosk mode.
    
    This happens due the fact that we call virt_viewer_app_disconnected()
    twice:
    - One with "session-cancelled" which is correct and well handled;
    - The other with "session-disconnected" which is misleading as there
      was no connection at this time. This will trigger the error dialog
      with "Unable to connect to the graphic server %s".
    
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1446161
    
    Signed-off-by: Victor Toso <victortoso@redhat.com>
    Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>