summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Churchill <damoxc@gmail.com>2010-02-19 23:49:52 +0000
committerDamien Churchill <damoxc@gmail.com>2010-02-19 23:49:52 +0000
commit5438a39af20c9ce9ba26edebbc47718d2c6d38e4 (patch)
tree200fcc9313f3c76bb39f41a5488f507c1c85755b
parentec15c3aadb6911713ef530ee86d5e937555be82c (diff)
downloaddeluge-5438a39af20c9ce9ba26edebbc47718d2c6d38e4.tar.gz
deluge-5438a39af20c9ce9ba26edebbc47718d2c6d38e4.tar.bz2
deluge-5438a39af20c9ce9ba26edebbc47718d2c6d38e4.zip
backport the fix for #1148 from master
-rw-r--r--deluge/plugins/execute/execute/core.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/deluge/plugins/execute/execute/core.py b/deluge/plugins/execute/execute/core.py
index 96565207d..5ca3496b9 100644
--- a/deluge/plugins/execute/execute/core.py
+++ b/deluge/plugins/execute/execute/core.py
@@ -127,8 +127,7 @@ class Core(CorePluginBase):
@export
def save_command(self, command_id, event, cmd):
- for command in self.config["commands"]:
+ for i, command in enumerate(self.config["commands"]):
if command[EXECUTE_ID] == command_id:
- command[EXECUTE_EVENT] = event
- command[EXECUTE_COMMAND] = cmd
+ self.config["commands"][i] = (command_id, event, cmd)
break