diff --git a/mediawiki.cc b/mediawiki.cc index 9fa21022..544a11da 100644 --- a/mediawiki.cc +++ b/mediawiki.cc @@ -131,6 +131,13 @@ MediaWikiWordSearchRequest::MediaWikiWordSearchRequest( wstring const & str, connect( netReply.get(), SIGNAL( finished() ), this, SLOT( downloadFinished() ) ); +#ifndef QT_NO_OPENSSL + + connect( netReply.get(), SIGNAL( sslErrors( QList< QSslError > ) ), + netReply.get(), SLOT( ignoreSslErrors() ) ); + +#endif + // We start a timer to postpone early destruction, so a rapid type won't make // unnecessary network load startTimer( 200 ); @@ -262,6 +269,13 @@ void MediaWikiArticleRequest::addQuery( QNetworkAccessManager & mgr, sptr< QNetworkReply > netReply = mgr.get( QNetworkRequest( reqUrl ) ); +#ifndef QT_NO_OPENSSL + + connect( netReply.get(), SIGNAL( sslErrors( QList< QSslError > ) ), + netReply.get(), SLOT( ignoreSslErrors() ) ); + +#endif + netReplies.push_back( std::make_pair( netReply, false ) ); }