From ea04c11ce1fb52895449a56e862eff5448ea456a Mon Sep 17 00:00:00 2001 From: mkaay Date: Thu, 24 Dec 2009 01:28:08 +0100 Subject: downloads are now aborted correctly, gui: remove downloads, new icons --- pyLoadGui.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'pyLoadGui.py') 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) -- cgit v1.2.3