mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
plugin installer: destroy network replies (fixes #8233)
This commit is contained in:
parent
be65f731d5
commit
a39b5ab2fa
@ -475,7 +475,7 @@ class Repositories(QObject):
|
||||
if not self.fetchingInProgress():
|
||||
self.checkingDone.emit()
|
||||
|
||||
del reply
|
||||
reply.deleteLater()
|
||||
|
||||
|
||||
# ----------------------------------------- #
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user