532 Private slot to cancel the current download. |
532 Private slot to cancel the current download. |
533 |
533 |
534 @param reply reference to the network reply |
534 @param reply reference to the network reply |
535 @type QNetworkReply |
535 @type QNetworkReply |
536 """ |
536 """ |
537 if reply is None: |
537 if reply is None and bool(self.__replies): |
538 if self.__replies: |
538 reply = self.__replies[0] |
539 reply = self.__replies[0] |
|
540 self.__pluginsToDownload = [] |
539 self.__pluginsToDownload = [] |
541 if reply is not None: |
540 if reply is not None: |
542 reply.abort() |
541 reply.abort() |
543 |
542 |
544 def __downloadProgress(self, done, total): |
543 def __downloadProgress(self, done, total): |