diff options
author | mkaay <mkaay@mkaay.de> | 2009-12-24 01:28:08 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2009-12-24 01:28:08 +0100 |
commit | ea04c11ce1fb52895449a56e862eff5448ea456a (patch) | |
tree | b0eb5c841b082ee5777ad072d5754a67cff383fc /pyLoadGui.py | |
parent | download speed limit (diff) | |
download | pyload-ea04c11ce1fb52895449a56e862eff5448ea456a.tar.xz |
downloads are now aborted correctly, gui: remove downloads, new icons
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) |