Skip to content

Commit 6472932

Browse files
Updated implementation
Added flags for iOS build
1 parent 3bb5d46 commit 6472932

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

core/merginapi.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,14 +1887,13 @@ void MerginApi::pingMergin()
18871887
request.setUrl( url );
18881888

18891889
QNetworkReply *reply = mManager->get( request );
1890+
#ifndef QT_NO_SSL
18901891
connect( reply, &QNetworkReply::sslErrors, this, [url]( const QList<QSslError> &errors )
18911892
{
18921893
CoreUtils::log( "URL attempting to access:", url.toString() );
1893-
18941894
for ( const auto &error : errors )
18951895
{
18961896
CoreUtils::log( "Error Description:", error.errorString() );
1897-
18981897
// Get the certificate causing the error
18991898
QSslCertificate cert = error.certificate();
19001899
if ( !cert.isNull() )
@@ -1908,7 +1907,7 @@ void MerginApi::pingMergin()
19081907
}
19091908
}
19101909
} );
1911-
1910+
#endif
19121911
CoreUtils::log( "ping", QStringLiteral( "Requesting: " ) + url.toString() );
19131912
connect( reply, &QNetworkReply::finished, this, &MerginApi::pingMerginReplyFinished );
19141913
}

0 commit comments

Comments
 (0)