diff 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
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp	Fri Oct 03 15:28:31 2014 +0100
+++ b/data/fileio/FileSource.cpp	Wed Oct 08 13:14:17 2014 +0100
@@ -487,6 +487,7 @@
     m_done = true;
     if (m_reply) {
         QNetworkReply *r = m_reply;
+        disconnect(r, 0, this, 0);
         m_reply = 0;
         // Can only call abort() when there are no errors.
         if (r->error() == QNetworkReply::NoError) {