diff --git a/scrobbling/scrobbler.cpp b/scrobbling/scrobbler.cpp index bb8a5f654..bc79fefe0 100644 --- a/scrobbling/scrobbler.cpp +++ b/scrobbling/scrobbler.cpp @@ -618,11 +618,11 @@ void Scrobbler::authenticate() params["method"] = "auth.getMobileSession"; params["username"] = userName; - bool supportsSsl = false; -#ifndef QT_NO_SSL - supportsSsl = QSslSocket::supportsSsl(); -#endif - if (supportsSsl) { + bool supportsSsl = false; + #ifndef QT_NO_SSL + supportsSsl = QSslSocket::supportsSsl(); + #endif + if (supportsSsl) { params["password"] = password; url.setScheme("https"); // Use HTTPS to authenticate } else {