diff options
Diffstat (limited to 'pyLoadGui.py')
| -rwxr-xr-x | pyLoadGui.py | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/pyLoadGui.py b/pyLoadGui.py index 997a2f781..d5fb02bc0 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -108,6 +108,7 @@ class main(QObject):          self.connect(self.mainWindow, SIGNAL("saveMainWindow"), self.slotSaveMainWindow)          self.connect(self.mainWindow, SIGNAL("pushPackageToQueue"), self.slotPushPackageToQueue)          self.connect(self.mainWindow, SIGNAL("restartDownload"), self.slotRestartDownload) +        self.connect(self.mainWindow, SIGNAL("removeDownload"), self.slotRemoveDownload)      def slotShowConnector(self):          """ @@ -426,6 +427,16 @@ class main(QObject):          else:              self.connector.restartFile(id) +    def slotRemoveDownload(self, id, isPack): +        """ +            emitted from main window +            remove download +        """ +        if isPack: +            self.connector.removePackage(id) +        else: +            self.connector.removeFile(id) +          class Loop(QThread):          """              main loop (not application loop) | 
