diff options
author | mkaay <mkaay@mkaay.de> | 2010-09-02 19:40:38 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-09-02 19:40:38 +0200 |
commit | db0751098c5acb0bb3c688c05f7bed2623ee63e2 (patch) | |
tree | 945f25c4d2751e59ef1ae58d88c7c75d37039ef6 /pyLoadGui.py | |
parent | gui: minimize to tray, eta (diff) | |
download | pyload-db0751098c5acb0bb3c688c05f7bed2623ee63e2.tar.xz |
gui fix
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py index dd83cbdcd..870964226 100755 --- a/pyLoadGui.py +++ b/pyLoadGui.py @@ -401,19 +401,17 @@ class main(QObject): coreparser = ConfigParser(self.configdir) if not coreparser.config: - raise Exception - #except: - # data["port"] = 7227 - # data["user"] = "admin" - # data["password"] = "pwhere" - # data["host"] = "127.0.0.1" - # data["ssl"] = False - - data["port"] = coreparser.get("remote","port") - data["user"] = coreparser.get("remote","username") - data["password"] = coreparser.get("remote","password") - data["host"] = "127.0.0.1" - data["ssl"] = coreparser.get("ssl","activated") + data["port"] = 7227 + data["user"] = "admin" + data["password"] = "pwhere" + data["host"] = "127.0.0.1" + data["ssl"] = False + else: + data["port"] = coreparser.get("remote","port") + data["user"] = coreparser.get("remote","username") + data["password"] = coreparser.get("remote","password") + data["host"] = "127.0.0.1" + data["ssl"] = coreparser.get("ssl","activated") data["ssl"] = "s" if data["ssl"] else "" server_url = "http%(ssl)s://%(user)s:%(password)s@%(host)s:%(port)s/" % data self.connector.setAddr(str(server_url)) |