summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2009-09-30 16:51:27 +0200
committerPeter Hartmann <peter.hartmann@nokia.com>2009-09-30 16:56:56 +0200
commit6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2 (patch)
tree7df16e5d9b6ccd8b6ca3cc0595de6eea92dfe7ef
parent571cb24e2c142b4089d1a263b9f3f97f5e211b51 (diff)
downloadqt4-tools-6fb1e687310f3f70c2f0bd3f25e91b65e65cafd2.tar.gz
Google Chat example: always bail out if SSL not available
Reviewed-by: Simon Hausmann
-rw-r--r--examples/webkit/googlechat/googlechat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/webkit/googlechat/googlechat.cpp b/examples/webkit/googlechat/googlechat.cpp
index af567d1f23..d2307d970f 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");