From 3bdb1aabb5dda1b857a39524c67a6aadd4cd3424 Mon Sep 17 00:00:00 2001 From: yifang Date: Sat, 2 Oct 2021 11:15:39 +0800 Subject: [PATCH] minor changes --- article_netmgr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/article_netmgr.cc b/article_netmgr.cc index 3a3c169c..8270e37f 100644 --- a/article_netmgr.cc +++ b/article_netmgr.cc @@ -527,7 +527,7 @@ void ArticleResourceReply::finishedSlot() if ( req->dataSize() < 0 ) error( ContentNotFoundError ); - finished(); + emit finished(); } BlockedNetworkReply::BlockedNetworkReply( QObject * parent ): QNetworkReply( parent ) @@ -559,7 +559,7 @@ void MySchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) request.setUrl( url ); QNetworkReply* reply=this->mManager.createRequest(QNetworkAccessManager::GetOperation,request,NULL); - connect(reply,&QNetworkReply::finished,[=](){ + connect(reply,&QNetworkReply::finished,this,[=](){ //QNetworkReply *reply1=qobject_cast(sender()); requestJob->reply("text/html",reply); });