mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Added few debug statements to EventManager timer loop
This commit is contained in:
parent
28fdfdfef1
commit
af2e487ef5
@ -76,16 +76,18 @@ void HttpServer::newHttpConnection()
|
|||||||
|
|
||||||
void HttpServer::onTimer()
|
void HttpServer::onTimer()
|
||||||
{
|
{
|
||||||
|
qDebug("EventManager Timer Start");
|
||||||
QStringList list = BTSession->getUnfinishedTorrents();
|
QStringList list = BTSession->getUnfinishedTorrents();
|
||||||
foreach(QString hash, list) {
|
foreach(QString hash, list) {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
if(h.is_valid()) manager->modifiedTorrent(h);
|
if(h.is_valid()) manager->modifiedTorrent(h);
|
||||||
}
|
}
|
||||||
list = BTSession->getFinishedTorrents();
|
list = BTSession->getFinishedTorrents();
|
||||||
foreach(QString hash, list) {
|
foreach(QString hash, list) {
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
if(h.is_valid()) manager->modifiedTorrent(h);
|
if(h.is_valid()) manager->modifiedTorrent(h);
|
||||||
}
|
}
|
||||||
|
qDebug("EventManager Timer Stop");
|
||||||
}
|
}
|
||||||
|
|
||||||
void HttpServer::setAuthorization(QString username, QString password)
|
void HttpServer::setAuthorization(QString username, QString password)
|
||||||
|
@ -71,14 +71,14 @@ var dynamicTable = new Class ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
if(this.options.overCls){
|
if(this.options.overCls){
|
||||||
tr.addEvent('mouseover', function(){
|
tr.addEvent('mouseover', function(e){
|
||||||
tr.addClass(this.options.overCls);
|
tr.addClass(this.options.overCls);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
tr.addEvent('mouseout', function(){
|
tr.addEvent('mouseout', function(e){
|
||||||
tr.removeClass(this.options.overCls);
|
tr.removeClass(this.options.overCls);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
tr.addEvent('click', function(){
|
tr.addEvent('click', function(e){
|
||||||
var temptr = this.rows[this.cur];
|
var temptr = this.rows[this.cur];
|
||||||
if(temptr){
|
if(temptr){
|
||||||
temptr.removeClass(this.options.selectCls);
|
temptr.removeClass(this.options.selectCls);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user