Skip to content
Permalink
Browse files

[plugin manager] Dont disconnect overall finished signal

  • Loading branch information
nirvn committed Mar 9, 2019
1 parent 4f1dd95 commit 3057fd61b01261f1bf956f50309f1d6cdf2bb3fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/pyplugin_installer/installer_data.py
@@ -339,7 +339,7 @@ def requestFetching(self, key, url=None, redirectionCounter=0):
self.mRepositories[key]["xmlData"].setProperty('reposName', key)
self.mRepositories[key]["xmlData"].setProperty('redirectionCounter', redirectionCounter)
self.mRepositories[key]["xmlData"].downloadProgress.connect(self.mRepositories[key]["Relay"].dataReadProgress)
self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)
self.mRepositories[key]["xmlDataFinished"] = self.mRepositories[key]["xmlData"].finished.connect(self.xmlDownloaded)

# ----------------------------------------- #
def fetchingInProgress(self):
@@ -353,7 +353,7 @@ def fetchingInProgress(self):
def killConnection(self, key):
""" kill the fetching on demand """
if self.mRepositories[key]["state"] == 1 and self.mRepositories[key]["xmlData"] and self.mRepositories[key]["xmlData"].isRunning():
self.mRepositories[key]["xmlData"].finished.disconnect()
self.mRepositories[key]["xmlData"].finished.disconnect(self.mRepositories[key]["xmlDataFinished"])
self.mRepositories[key]["xmlData"].abort()

# ----------------------------------------- #

0 comments on commit 3057fd6

Please sign in to comment.
You can’t perform that action at this time.