Check if download reply is None when closing tab.

Fixes #311.
This commit is contained in:
Florian Bruhin 2014-12-09 17:37:57 +01:00
parent bf24578dfd
commit 7e95401f02

View File

@ -710,7 +710,7 @@ class DownloadManager(QAbstractListModel):
A boolean.
"""
for download in self.downloads:
if download.reply.manager() is nam:
if download.reply is not None and download.reply.manager() is nam:
return True
return False