mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
Don't have a debug statement cause it to crash.
This commit is contained in:
parent
ec505bc20b
commit
ace9915958
1 changed files with 4 additions and 4 deletions
|
|
@ -88,7 +88,7 @@ QNetworkReply *PictureLoaderWorker::makeRequest(const QUrl &url, PictureLoaderWo
|
||||||
// Connect an additional check to the finished signal to check if the request was redirected and if so, save it to
|
// Connect an additional check to the finished signal to check if the request was redirected and if so, save it to
|
||||||
// the redirection cache
|
// the redirection cache
|
||||||
|
|
||||||
connect(reply, &QNetworkReply::finished, this, [this, reply, url]() {
|
connect(reply, &QNetworkReply::finished, this, [this, reply, url, worker]() {
|
||||||
QVariant redirectTarget = reply->attribute(QNetworkRequest::RedirectionTargetAttribute);
|
QVariant redirectTarget = reply->attribute(QNetworkRequest::RedirectionTargetAttribute);
|
||||||
|
|
||||||
if (redirectTarget.isValid()) {
|
if (redirectTarget.isValid()) {
|
||||||
|
|
@ -99,9 +99,9 @@ QNetworkReply *PictureLoaderWorker::makeRequest(const QUrl &url, PictureLoaderWo
|
||||||
|
|
||||||
cacheRedirect(url, redirectUrl);
|
cacheRedirect(url, redirectUrl);
|
||||||
qCDebug(PictureLoaderWorkerLog).nospace()
|
qCDebug(PictureLoaderWorkerLog).nospace()
|
||||||
<< "[card: " << cardBeingDownloaded.getCard()->getCorrectedName()
|
<< "PictureLoader: [card: " << worker->cardToDownload.getCard()->getCorrectedName()
|
||||||
<< " set: " << cardBeingDownloaded.getSetName() << "]: Caching redirect from " << url.toDisplayString()
|
<< " set: " << worker->cardToDownload.getSetName() << "]: Caching redirect from "
|
||||||
<< " to " << redirectUrl.toDisplayString();
|
<< url.toDisplayString() << " to " << redirectUrl.toDisplayString();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue