summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-28 22:21:35 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-28 22:21:35 +0100
commit86949a6240bc6d5a5fd5e5677925e0d945686d3e (patch)
treeb421a1388ae4dc931469d7dd94f70cf5300f2a96 /pyLoadGui.py
parentyou can now drop single links directly into a package (diff)
downloadpyload-86949a6240bc6d5a5fd5e5677925e0d945686d3e.tar.xz
package renaming in collector works
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 7ef267fcb..38013cd4c 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -78,6 +78,7 @@ class main(QObject):
self.mainloop.start()
self.clipboard = self.app.clipboard()
self.connect(self.clipboard, SIGNAL('dataChanged()'), self.slotClipboardChange)
+ self.connect(self.mainWindow, SIGNAL("pauseItemUpdate"), self.packageCollector.pauseItemUpdate)
self.mainWindow.actions["clipboard"].setChecked(self.checkClipboard)
def stopMain(self):
@@ -85,6 +86,7 @@ class main(QObject):
stop all refresh threads and hide main window
"""
self.disconnect(self.clipboard, SIGNAL('dataChanged()'), self.slotClipboardChange)
+ self.disconnect(self.mainWindow, SIGNAL("pauseItemUpdate"), self.packageCollector.pauseItemUpdate)
self.mainloop.stop()
self.connector.stop()
self.mainWindow.saveWindow()
@@ -119,6 +121,7 @@ class main(QObject):
self.connect(self.mainWindow, SIGNAL("addContainer"), self.slotAddContainer)
self.connect(self.mainWindow, SIGNAL("stopAllDownloads"), self.slotStopAllDownloads)
self.connect(self.mainWindow, SIGNAL("setClipboardStatus"), self.slotSetClipboardStatus)
+ self.connect(self.mainWindow, SIGNAL("changePackageName"), self.slotChangePackageName)
def slotShowConnector(self):
"""
@@ -539,6 +542,12 @@ class main(QObject):
"""
self.checkClipboard = status
+ def slotChangePackageName(self, pid, name):
+ """
+ package name edit finished
+ """
+ self.connector.setPackageName(pid, str(name))
+
class Loop(QThread):
"""
main loop (not application loop)