Author: andar
Revision: 5613
Log:
Reset the config_files when the config directory changes
Diff:
Modified: trunk/deluge/configmanager.py
===================================================================
--- trunk/deluge/configmanager.py 2009-08-03 16:27:45 UTC (rev 5612)
+++ trunk/deluge/configmanager.py 2009-08-03 16:56:01 UTC (rev 5613)
@@ -80,6 +80,13 @@
return False
self.__config_directory = directory
+
+ # Reset the config_files so we don't get config from old config folder
+ # XXX: Probably should have it go through the config_files dict and try
+ # to reload based on the new config directory
+ self.save()
+ self.config_files = {}
+
return True
def get_config_dir(self):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---