From 40ea58517552412a44fe2b4c1c5c1a970e5e0bad Mon Sep 17 00:00:00 2001 From: apa420 Date: Mon, 14 May 2018 01:12:42 +0200 Subject: [PATCH] Revert "Pajlada told me this would fix the crash when you change user" This reverts commit e4e813fe16739bab9a0fea395aa53d7916a4d471. --- src/util/networkrequest.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }