Module: deluge
Branch: master
Commit: 981ad6d7d260f6ceac4f5bc24b076fb765883b7e

Author: Calum Lind <[email protected]>
Date:   Mon Jun 27 21:50:39 2011 +0100

Fix #1246: Losing Labels upon restart

---

 deluge/plugins/Label/deluge/plugins/label/core.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/deluge/plugins/Label/deluge/plugins/label/core.py 
b/deluge/plugins/Label/deluge/plugins/label/core.py
index 1c95023..d255e77 100644
--- a/deluge/plugins/Label/deluge/plugins/label/core.py
+++ b/deluge/plugins/Label/deluge/plugins/label/core.py
@@ -134,6 +134,8 @@ class Core(CorePluginBase):
 
     ## Plugin hooks ##
     def post_torrent_add(self, torrent_id, from_state):
+        if from_state:
+            return
         log.debug("post_torrent_add")
         torrent = self.torrents[torrent_id]
 

-- 
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.

Reply via email to