summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-04-08 17:59:31 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2012-04-08 23:35:34 +0100
commit5572f610221dea54c5b80860f501fdd2e34b17ba (patch)
tree40a56452a2b7ca22d62459e6da38f1c64af47f14
parentfe6e9ec4675f0c8bdba380745714650b22780ee9 (diff)
downloaddeluge-5572f6102.zip
deluge-5572f6102.tar.gz
deluge-5572f6102.tar.bz2
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.
-rw-r--r--deluge/common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/deluge/common.py b/deluge/common.py
index 0ae8d57..4881d16 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,