plugin installer: destroy network replies (fixes #8233)

This commit is contained in:
Juergen E. Fischer 2013-07-07 21:43:09 +02:00
parent be65f731d5
commit a39b5ab2fa
2 changed files with 3 additions and 3 deletions

View File

@ -475,7 +475,7 @@ class Repositories(QObject):
if not self.fetchingInProgress():
self.checkingDone.emit()
del reply
reply.deleteLater()
# ----------------------------------------- #

View File

@ -89,13 +89,13 @@ class QgsPluginInstallerInstallingDialog(QDialog, Ui_QgsPluginInstallerInstallin
if reply.error() == QNetworkReply.OperationCanceledError:
self.mResult += "<br/><br/>" + QCoreApplication.translate("QgsPluginInstaller", "If you haven't cancelled the download manually, it might be caused by a timeout. In this case consider increasing the connection timeout value in QGIS options.")
self.reject()
del reply
reply.deleteLater()
return
self.file.open(QFile.WriteOnly)
self.file.write( reply.readAll() )
self.file.close()
self.stateChanged(0)
del reply
reply.deleteLater()
pluginDir = QFileInfo(QgsApplication.qgisUserDbFilePath()).path() + "/python/plugins"
tmpPath = self.file.fileName()
# make sure that the parent directory exists