Disable setSslConfiguration calls for older Qt version
authorDaniel Molkentin <danimo@owncloud.com>
Wed, 6 May 2015 09:20:16 +0000 (11:20 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Wed, 6 May 2015 09:20:16 +0000 (11:20 +0200)
This is only required for client certs, which currently have
no GUI anyway and are experimental.

src/libsync/account.cpp

index 9b8941f04493ef461964c1a88ce880aa2d69065b..c6aac47a38061cf28db1c6a124cc99cdd7f8b841 100644 (file)
@@ -321,7 +321,9 @@ QNetworkReply *Account::getRequest(const QString &relPath)
 QNetworkReply *Account::getRequest(const QUrl &url)
 {
     QNetworkRequest request(url);
+#if QT_VERSION > QT_VERSION_CHECK(4, 8, 4)
     request.setSslConfiguration(this->createSslConfig());
+#endif
     return _am->get(request);
 }
 
@@ -333,7 +335,9 @@ QNetworkReply *Account::davRequest(const QByteArray &verb, const QString &relPat
 QNetworkReply *Account::davRequest(const QByteArray &verb, const QUrl &url, QNetworkRequest req, QIODevice *data)
 {
     req.setUrl(url);
+#if QT_VERSION > QT_VERSION_CHECK(4, 8, 4)
     req.setSslConfiguration(this->createSslConfig());
+#endif
     return _am->sendCustomRequest(req, verb, data);
 }