mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Wiki's: Ignore SSL connection errors
This commit is contained in:
parent
3995717cdd
commit
20396aa988
14
mediawiki.cc
14
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 ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue