From 5572f610221dea54c5b80860f501fdd2e34b17ba Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 8 Apr 2012 17:59:31 +0100 Subject: [PATCH] Fix #2071 : KeyError in gtkui when file priority set to value '3' Bug results from setting file priority value in core which does not exist in the FILE_PRIORITY dict used by UIs. --- deluge/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/common.py b/deluge/common.py index 0ae8d5742..4881d16b6 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -117,7 +117,10 @@ FILE_PRIORITY = { 0: "Do Not Download", 1: "Normal Priority", 2: "High Priority", + 3: "High Priority", + 4: "High Priority", 5: "High Priority", + 6: "High Priority", 7: "Highest Priority", "Do Not Download": 0, "Normal Priority": 1,