From 828b3204b86f241f596d7e2d59cf56d043b45391 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 d2b0c0da3..f6cc56131 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -105,7 +105,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,