Pajlada told me this would fix the crash when you change user

This commit is contained in:
apacadabra 2018-05-13 22:15:28 +02:00
parent 7bc63ba38f
commit e4e813fe16

View file

@ -372,7 +372,9 @@ private:
QObject::connect(worker, &NetworkWorker::doneUrl, this->data.caller, QObject::connect(worker, &NetworkWorker::doneUrl, this->data.caller,
[data = this->data](auto reply) mutable { [data = this->data](auto reply) mutable {
if (reply->error() != QNetworkReply::NetworkError::NoError) { if (reply->error() != QNetworkReply::NetworkError::NoError) {
if (data.onError) {
data.onError(reply->error()); data.onError(reply->error());
}
return; return;
} }