diff options
| author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2014-10-16 16:25:23 +0200 |
|---|---|---|
| committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2014-10-16 16:25:23 +0200 |
| commit | ccc3fbe16a291bea47ec4f0bd8806122cbe28b7d (patch) | |
| tree | 108630bb9c0e5286bf3f17cf1f1b3d8841b12fd3 /src | |
| parent | 65560fa4664e0cee5a0c7f76065a9418f06bbd86 (diff) | |
Check for the right spice version in session-spice.c
We have to check for the spice version where the
SPICE_CLIENT_ERROR_AUTH_NEEDS_PASSWORD_AND_USERNAME was introduced and
not for the one where spice_channel_get_error() was introduced.
Diffstat (limited to 'src')
| -rw-r--r-- | src/virt-viewer-session-spice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c index c45795c..4cd2ac8 100644 --- a/src/virt-viewer-session-spice.c +++ b/src/virt-viewer-session-spice.c @@ -514,7 +514,7 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel G_GNUC_UNUSED const GError *error = NULL; g_debug("main channel: auth failure (wrong username/password?)"); -#if SPICE_GTK_CHECK_VERSION(0, 23, 21) +#if SPICE_GTK_CHECK_VERSION(0, 25, 46) { error = spice_channel_get_error(channel); username_required = g_error_matches(error, |
