From f9bf485ed7e2c647aa8c158e835e441aac1669f7 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 30 Dec 2008 11:52:22 +0000 Subject: [PATCH] - Forgot to consider allocating state in WebUI --- src/eventmanager.cpp | 1 + src/webui/scripts/client.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index 8b4f60088..4e29546bd 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -63,6 +63,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h) case torrent_status::queued_for_checking: event["state"] = QVariant("checking"); break; + case torrent_status::allocating: case torrent_status::downloading: case torrent_status::downloading_metadata: if(h.download_payload_rate() > 0) diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js index 17dc42f0c..78921db74 100644 --- a/src/webui/scripts/client.js +++ b/src/webui/scripts/client.js @@ -56,6 +56,8 @@ window.addEvent('domready', function(){ return ''; case 'queued': return ''; + default: + return ''; } return ''; };