Browse Source

Added few debug statements to EventManager timer loop

adaptive-webui-19844
Ishan Arora 17 years ago
parent
commit
af2e487ef5
  1. 10
      src/httpserver.cpp
  2. 6
      src/webui/scripts/dynamicTable.js

10
src/httpserver.cpp

@ -76,16 +76,18 @@ void HttpServer::newHttpConnection() @@ -76,16 +76,18 @@ void HttpServer::newHttpConnection()
void HttpServer::onTimer()
{
qDebug("EventManager Timer Start");
QStringList list = BTSession->getUnfinishedTorrents();
foreach(QString hash, list) {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid()) manager->modifiedTorrent(h);
}
list = BTSession->getFinishedTorrents();
list = BTSession->getFinishedTorrents();
foreach(QString hash, list) {
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid()) manager->modifiedTorrent(h);
}
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid()) manager->modifiedTorrent(h);
}
qDebug("EventManager Timer Stop");
}
void HttpServer::setAuthorization(QString username, QString password)

6
src/webui/scripts/dynamicTable.js

@ -71,14 +71,14 @@ var dynamicTable = new Class ({ @@ -71,14 +71,14 @@ var dynamicTable = new Class ({
};
if(this.options.overCls){
tr.addEvent('mouseover', function(){
tr.addEvent('mouseover', function(e){
tr.addClass(this.options.overCls);
}.bind(this));
tr.addEvent('mouseout', function(){
tr.addEvent('mouseout', function(e){
tr.removeClass(this.options.overCls);
}.bind(this));
}
tr.addEvent('click', function(){
tr.addEvent('click', function(e){
var temptr = this.rows[this.cur];
if(temptr){
temptr.removeClass(this.options.selectCls);

Loading…
Cancel
Save