From ccbf75d5b92079b40a446797c3c60f6ce086ad29 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Thu, 27 Nov 2008 05:19:02 +0000 Subject: [PATCH] Fix last --- deluge/plugins/label/label/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deluge/plugins/label/label/core.py b/deluge/plugins/label/label/core.py index 6f720104a..f08ccb00f 100644 --- a/deluge/plugins/label/label/core.py +++ b/deluge/plugins/label/label/core.py @@ -157,9 +157,10 @@ class Core(CorePluginBase): options.update(self.labels[key]) self.labels[key] = options - for key, value in self.labels.iteritems(): - if value == None: - self.labels[key] = OPTIONS_DEFAULTS[key] + for label, options in self.labels.items(): + for key, value in options.items(): + if value == None: + self.labels[label][key] = OPTIONS_DEFAULTS[key] def save_config(self): self.clean_config()