From af2e487ef5b61586c0c5f86d1f4273df324ee649 Mon Sep 17 00:00:00 2001 From: Ishan Arora Date: Mon, 15 Sep 2008 05:27:56 +0000 Subject: [PATCH] Added few debug statements to EventManager timer loop --- src/httpserver.cpp | 10 ++++++---- src/webui/scripts/dynamicTable.js | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 592beff0d..882f034f0 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -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) diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js index 6ca6e8689..882fe849c 100644 --- a/src/webui/scripts/dynamicTable.js +++ b/src/webui/scripts/dynamicTable.js @@ -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);