comparison data/fileio/FileSource.cpp @ 993:60e2927b1475

Disconnect signals before abandoning reply object, avoiding "reply unknown" error
author Chris Cannam
date Wed, 08 Oct 2014 13:14:17 +0100
parents c6f2b93a7d52
children 3a48b22fed48
comparison
equal deleted inserted replaced
992:7a8f7a553b37 993:60e2927b1475
485 m_localFile = 0; 485 m_localFile = 0;
486 } 486 }
487 m_done = true; 487 m_done = true;
488 if (m_reply) { 488 if (m_reply) {
489 QNetworkReply *r = m_reply; 489 QNetworkReply *r = m_reply;
490 disconnect(r, 0, this, 0);
490 m_reply = 0; 491 m_reply = 0;
491 // Can only call abort() when there are no errors. 492 // Can only call abort() when there are no errors.
492 if (r->error() == QNetworkReply::NoError) { 493 if (r->error() == QNetworkReply::NoError) {
493 r->abort(); 494 r->abort();
494 } 495 }