Browse Source

- Forgot to consider allocating state in WebUI

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
f9bf485ed7
  1. 1
      src/eventmanager.cpp
  2. 2
      src/webui/scripts/client.js

1
src/eventmanager.cpp

@ -63,6 +63,7 @@ void EventManager::modifiedTorrent(QTorrentHandle h) @@ -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)

2
src/webui/scripts/client.js

@ -56,6 +56,8 @@ window.addEvent('domready', function(){ @@ -56,6 +56,8 @@ window.addEvent('domready', function(){
return '<img src="images/skin/stalled.png"/>';
case 'queued':
return '<img src="images/skin/queued.png"/>';
default:
return '<img src="images/skin/stalled.png"/>';
}
return '';
};

Loading…
Cancel
Save