diff options
author | Peter Hartmann <peter.hartmann@nokia.com> | 2009-09-30 14:51:27 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@nokia.com> | 2009-09-30 14:56:56 (GMT) |
commit | 6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2 (patch) | |
tree | 7df16e5d9b6ccd8b6ca3cc0595de6eea92dfe7ef /examples/webkit | |
parent | 571cb24e2c142b4089d1a263b9f3f97f5e211b51 (diff) | |
download | Qt-6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2.zip Qt-6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2.tar.gz Qt-6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2.tar.bz2 |
Google Chat example: always bail out if SSL not available
Reviewed-by: Simon Hausmann
Diffstat (limited to 'examples/webkit')
-rw-r--r-- | examples/webkit/googlechat/googlechat.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/webkit/googlechat/googlechat.cpp b/examples/webkit/googlechat/googlechat.cpp index af567d1..d2307d9 100644 --- a/examples/webkit/googlechat/googlechat.cpp +++ b/examples/webkit/googlechat/googlechat.cpp @@ -118,12 +118,12 @@ void GoogleChat::doLogin() { } void GoogleChat::initialPage(bool ok) { - if (ok) { - if (!QSslSocket::supportsSsl()) { - showError("This example requires SSL support."); - return; - } + if (!QSslSocket::supportsSsl()) { + showError("This example requires SSL support."); + return; + } + if (ok) { QString s1 = evalJS("document.getElementById('Email').name"); QString s2 = evalJS("document.getElementById('Passwd').name"); QString s3 = evalJS("document.getElementById('gaia_loginform').id"); |