on xenial help sign in
Add comment explaining why worker->m_reply is fine to use at this point
commit385f205ad4629a2f0184c7bda5659459cd00049c authorAlbert Astals <albert.astals@canonical.com> dateTue 11 Nov 2014, 12:43 (12 years ago) parentc8db5fb
1 file changed+1
plugins/Dash/croppedimagesizerasyncworker.cpp+1
plugins/Dash/croppedimagesizerasyncworker.cpp+1
@@ -58,6 +58,7 @@ void CroppedImageSizerAsyncWorker::requestFinished()
5858void CroppedImageSizerAsyncWorker::processRequestFinished(qreal width, qreal height, QUrl source, CroppedImageSizerAsyncWorker *worker)
5959{
6060 // This runs on non main thread
61+ // m_reply has finished at this point and is protected against change by m_ignoreAbort
6162 QImageReader reader(worker->m_reply);
6263 const QSize imageSize = reader.size();
6364 QSize sourceSize = QSize(0, 0);