summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-01 15:34:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-01 15:34:00 -0800
commit3f72500f87cc2824b468f62c1a4bef524ceadfff (patch)
tree13cff5efec6bff8fc722d220920578348e34e8ad
parentc0ac9532427dee713c8ba96a1ceb10ee78b2bfc8 (diff)
downloadsubsurface-3f72500f87cc2824b468f62c1a4bef524ceadfff.tar.gz
Switch to compile time connect syntax
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-core/checkcloudconnection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/checkcloudconnection.cpp b/subsurface-core/checkcloudconnection.cpp
index 428c4cda6..f028755d0 100644
--- a/subsurface-core/checkcloudconnection.cpp
+++ b/subsurface-core/checkcloudconnection.cpp
@@ -32,9 +32,9 @@ bool CheckCloudConnection::checkServer()
request.setUrl(QString(prefs.cloud_base_url) + TEAPOT);
QNetworkAccessManager *mgr = new QNetworkAccessManager();
reply = mgr->get(request);
- connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
- connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
- connect(reply, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(sslErrors(QList<QSslError>)));
+ connect(&timer, &QTimer::timeout, &loop, &QEventLoop::quit);
+ connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit);
+ connect(reply, &QNetworkReply::sslErrors, this, &CheckCloudConnection::sslErrors);
timer.start(5000); // wait five seconds
loop.exec();
if (timer.isActive()) {