From 981ad6d7d260f6ceac4f5bc24b076fb765883b7e Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 27 Jun 2011 21:50:39 +0100 Subject: [PATCH] Fix #1246: Losing Labels upon restart --- deluge/plugins/Label/deluge/plugins/label/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/plugins/Label/deluge/plugins/label/core.py b/deluge/plugins/Label/deluge/plugins/label/core.py index 1c950235b..d255e77eb 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]