summaryrefslogtreecommitdiffstats
path: root/deluge/ui/client.py
diff options
context:
space:
mode:
authorPedro Algarvio <ufs@ufsoft.org>2011-04-27 22:06:13 +0100
committerPedro Algarvio <ufs@ufsoft.org>2011-04-27 22:06:13 +0100
commit9fa8748432cfc8c58572603192696be9765855cc (patch)
tree11c39784584058053f8cf9a732dc7a0c7eccc418 /deluge/ui/client.py
parent18b27d4b49546df85b39c01b171850ab7f38623b (diff)
downloaddeluge-9fa8748432cfc8c58572603192696be9765855cc.tar.gz
deluge-9fa8748432cfc8c58572603192696be9765855cc.tar.bz2
deluge-9fa8748432cfc8c58572603192696be9765855cc.zip
Fix some clean config dir issues.
Moved some auth stuff to `deluge.common` because they're also used on the GTK UI. Now, if a user starts deluge in classic mode and tries to change it to client/daemon mode, he see's a dialog stating that the current session will be stopped. If he answers no, nothing is done, the classic mode pref is set back as it was. If he answers yes, all components are stopped and client is disconnected. At this stage the user can open the connection manager to start the daemon and connect. If the user starts in client/daemon mode and switches to classic mode he see's a dialog stating that deluge must be restarted. The GTK UI connection manager now loads it's default config with the localclient username and password. If not present in the auth file, the auth file will be recreated.
Diffstat (limited to 'deluge/ui/client.py')
-rw-r--r--deluge/ui/client.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index e59df470d..a6b17b922 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -515,6 +515,7 @@ class DaemonClassicProxy(DaemonProxy):
self.__daemon.core.eventmanager.register_event_handler(event, handler)
def disconnect(self):
+ self.connected = False
self.__daemon = None
def call(self, method, *args, **kwargs):