mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
fix:website dictionary display when http status!=200
This commit is contained in:
parent
c171d5b8bb
commit
0676845328
|
@ -24,13 +24,6 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
|
|||
|
||||
QBuffer * buffer = new QBuffer( requestJob );
|
||||
// Handle reply data
|
||||
if( reply->error() != QNetworkReply::NoError )
|
||||
{
|
||||
QString emptyHtml = QString( "<html><body>%1</body></html>" ).arg( reply->errorString() );
|
||||
buffer->setData( emptyHtml.toUtf8() );
|
||||
requestJob->reply( contentType, buffer );
|
||||
return;
|
||||
}
|
||||
QByteArray replyData = reply->readAll();
|
||||
QString articleString;
|
||||
|
||||
|
|
Loading…
Reference in a new issue