minor changes

This commit is contained in:
yifang 2021-10-02 11:15:39 +08:00
parent fa39e972ce
commit 3bdb1aabb5

View file

@ -527,7 +527,7 @@ void ArticleResourceReply::finishedSlot()
if ( req->dataSize() < 0 ) if ( req->dataSize() < 0 )
error( ContentNotFoundError ); error( ContentNotFoundError );
finished(); emit finished();
} }
BlockedNetworkReply::BlockedNetworkReply( QObject * parent ): QNetworkReply( parent ) BlockedNetworkReply::BlockedNetworkReply( QObject * parent ): QNetworkReply( parent )
@ -559,7 +559,7 @@ void MySchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob)
request.setUrl( url ); request.setUrl( url );
QNetworkReply* reply=this->mManager.createRequest(QNetworkAccessManager::GetOperation,request,NULL); QNetworkReply* reply=this->mManager.createRequest(QNetworkAccessManager::GetOperation,request,NULL);
connect(reply,&QNetworkReply::finished,[=](){ connect(reply,&QNetworkReply::finished,this,[=](){
//QNetworkReply *reply1=qobject_cast<QNetworkReply*>(sender()); //QNetworkReply *reply1=qobject_cast<QNetworkReply*>(sender());
requestJob->reply("text/html",reply); requestJob->reply("text/html",reply);
}); });