Helpviewer/Network/NetworkReply.py

changeset 641
b06d4df23797
parent 499
622ab17a68d5
child 791
9ec2ac20e54e
diff -r ae2e2a0cde5b -r b06d4df23797 Helpviewer/Network/NetworkReply.py
--- a/Helpviewer/Network/NetworkReply.py	Sun Sep 26 11:18:21 2010 +0200
+++ b/Helpviewer/Network/NetworkReply.py	Sun Sep 26 15:18:07 2010 +0200
@@ -51,6 +51,8 @@
         
         @return bytes available (integer)
         """
+        if self.__data.length() == 0:
+            QTimer.singleShot(0, lambda: self.finished.emit())
         return self.__data.length() + QNetworkReply.bytesAvailable(self)
     
     def readData(self, maxlen):

eric ide

mercurial