diff --git a/src/util/networkrequest.hpp b/src/util/networkrequest.hpp index 07da68f4a..f1de1066d 100644 --- a/src/util/networkrequest.hpp +++ b/src/util/networkrequest.hpp @@ -372,9 +372,7 @@ private: QObject::connect(worker, &NetworkWorker::doneUrl, this->data.caller, [data = this->data](auto reply) mutable { if (reply->error() != QNetworkReply::NetworkError::NoError) { - if (data.onError) { - data.onError(reply->error()); - } + data.onError(reply->error()); return; }