This commit is contained in:
Florian Bruhin 2014-06-12 15:17:27 +02:00
parent 1b8a44ac26
commit 3d6d81e1cb
2 changed files with 5 additions and 1 deletions

View File

@ -126,11 +126,15 @@ class ErrorNetworkReply(QNetworkReply):
"""
super().__init__(parent)
self.setError(error, errorstring)
# For some reason, a segfault will be triggered if these lambdas aren't
# there. pylint: disable=unnecessary-lambda
QTimer.singleShot(0, lambda: self.error.emit(error))
QTimer.singleShot(0, lambda: self.finished.emit())
def abort(self):
"""Do nothing since it's a fake reply."""
pass
def bytesAvailable(self):
"""We always have 0 bytes available."""
return 0

View File

@ -206,7 +206,7 @@ def version():
lines += [
'',
'{}: {}'.format(platform.python_implementation(),
platform.python_version()),
platform.python_version()),
'Qt: {}, runtime: {}'.format(QT_VERSION_STR, qVersion()),
'PyQt: {}'.format(PYQT_VERSION_STR),
]