on xenial help sign in
Add comment explaining why worker->m_reply is fine to use at this point
385f205Albert Astals
plugins/Dash/croppedimagesizerasyncworker.cpp+1
@@ -58,6 +58,7 @@ void CroppedImageSizerAsyncWorker::requestFinished()
58void CroppedImageSizerAsyncWorker::processRequestFinished(qreal width, qreal height, QUrl source, CroppedImageSizerAsyncWorker *worker)
58void CroppedImageSizerAsyncWorker::processRequestFinished(qreal width, qreal height, QUrl source, CroppedImageSizerAsyncWorker *worker)
59{
59{
60 // This runs on non main thread
60 // This runs on non main thread
61+ // m_reply has finished at this point and is protected against change by m_ignoreAbort
61 QImageReader reader(worker->m_reply);
62 QImageReader reader(worker->m_reply);
62 const QSize imageSize = reader.size();
63 const QSize imageSize = reader.size();
63 QSize sourceSize = QSize(0, 0);
64 QSize sourceSize = QSize(0, 0);