Hide Qt warning when aborting download reply.

This commit is contained in:
Florian Bruhin 2015-03-09 07:49:02 +01:00
parent 6a16875f50
commit e78fa431c5

View File

@ -322,7 +322,11 @@ class DownloadItem(QObject):
self.error_msg = msg
self.stats.finish()
self.error.emit(msg)
self.reply.abort()
with log.hide_qt_warning('QNetworkReplyImplPrivate::error: Internal '
'problem, this method must only be called '
'once.'):
# See https://codereview.qt-project.org/#/c/107863/
self.reply.abort()
self.reply.deleteLater()
self.reply = None
self.done = True