diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2011-07-08 13:22:59 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2011-07-08 23:34:02 +0100 |
commit | ca86aa5714f48f857ea779fabc9dae231dc93bbb (patch) | |
tree | 53518636ee4c40491c0a5b9ccbe3f072360860c4 | |
parent | fc7fa94319eda4436d15d7f0acc668899b7b60b5 (diff) | |
download | deluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.tar.gz deluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.tar.bz2 deluge-ca86aa5714f48f857ea779fabc9dae231dc93bbb.zip |
Fixes keyerror with existing file priorities set to High
-rw-r--r-- | deluge/common.py | 1 | ||||
-rw-r--r-- | deluge/ui/web/js/deluge-all/Deluge.js | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/deluge/common.py b/deluge/common.py index 763f03c8c..b246e6675 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -104,6 +104,7 @@ TORRENT_STATE = [ FILE_PRIORITY = { 0: "Do Not Download", 1: "Normal Priority", + 2: "High Priority", 5: "High Priority", 7: "Highest Priority", "Do Not Download": 0, diff --git a/deluge/ui/web/js/deluge-all/Deluge.js b/deluge/ui/web/js/deluge-all/Deluge.js index 2e9c0fded..514294408 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.js +++ b/deluge/ui/web/js/deluge-all/Deluge.js @@ -162,12 +162,13 @@ FILE_PRIORITY = { 0: 'Do Not Download', 1: 'Normal Priority', 2: 'High Priority', - 5: 'Highest Priority', + 5: 'High Priority', + 7: 'Highest Priority', 'Mixed': 9, 'Do Not Download': 0, 'Normal Priority': 1, - 'High Priority': 2, - 'Highest Priority': 5 + 'High Priority': 5, + 'Highest Priority': 7 } FILE_PRIORITY_CSS = { @@ -175,5 +176,6 @@ FILE_PRIORITY_CSS = { 0: 'x-no-download', 1: 'x-normal-download', 2: 'x-high-download', - 5: 'x-highest-download' + 5: 'x-high-download', + 7: 'x-highest-download' } |