summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 15:57:17 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-09-30 15:57:17 +0200
commitaf6f0e882f9d533dcb0271c1afbc7210532363b4 (patch)
treea0e5756077d3c9383a55f7cc2f48f20688b045bd /pyLoadGui.py
parentfixed name clash in C# (diff)
downloadpyload-af6f0e882f9d533dcb0271c1afbc7210532363b4.tar.xz
little GUI and API fixes
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 44810b9b5..3a5d62e7b 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -426,10 +426,14 @@ class main(QObject):
config = CoreConfig() #create so at least default config exists
self.core = Core()
self.core.startedInGui = True
- thread.start_new_thread(self.core.start, (True, False))
+ thread.start_new_thread(self.core.start, (False, False))
while not self.core.running:
sleep(0.5)
- self.connector.setConnectionData("127.0.0.1", config.get("remote","port"), "anonymous", "anonymous")
+
+ self.connector.proxy = self.core.api
+ self.connector.internal = True
+
+ #self.connector.setConnectionData("127.0.0.1", config.get("remote","port"), "anonymous", "anonymous")
self.startMain()
# try:
@@ -646,14 +650,14 @@ class main(QObject):
if not events:
return
for event in events:
- if event.event == "account":
+ if event.eventname == "account":
self.mainWindow.emit(SIGNAL("reloadAccounts"), False)
- elif event.event == "config":
+ elif event.eventname == "config":
pass
elif event.destination == Destination.Queue:
self.queue.addEvent(event)
try:
- if event.event == "update" and event.type == ElementType.File:
+ if event.eventname == "update" and event.type == ElementType.File:
info = self.connector.getFileData(event.id)
if info.statusmsg == "finished":
self.emit(SIGNAL("showMessage"), _("Finished downloading of '%s'") % info.name)