File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
python/pyplugin_installer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ def load(self):
383
383
self .mRepositories [key ]["QPNAM" ] = QPNetworkAccessManager ()
384
384
385
385
self .mRepositories [key ]["Relay" ] = Relay (key )
386
- self .mRepositories [key ]["xmlData" ] = QBuffer ()
386
+ self .mRepositories [key ]["xmlData" ] = None
387
387
self .mRepositories [key ]["state" ] = 0
388
388
self .mRepositories [key ]["error" ] = ""
389
389
settings .endGroup ()
@@ -417,7 +417,7 @@ def fetchingInProgress(self):
417
417
# ----------------------------------------- #
418
418
def killConnection (self , key ):
419
419
""" kill the fetching on demand """
420
- if self .mRepositories [key ]["xmlData" ].isRunning ():
420
+ if self .mRepositories [key ]["xmlData" ] and self . mRepositories [ key ][ "xmlData" ] .isRunning ():
421
421
self .mRepositories [key ]["QPNAM" ].finished .disconnect ()
422
422
self .mRepositories [key ]["xmlData" ].abort ()
423
423
You can’t perform that action at this time.
0 commit comments