mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 15:04:36 +00:00
- Removed some debug (didn't mean to commit that)
This commit is contained in:
parent
47b42c1c90
commit
12fd87ab85
@ -616,7 +616,7 @@ void GUI::updateDlList(bool force){
|
|||||||
case torrent_status::downloading:
|
case torrent_status::downloading:
|
||||||
case torrent_status::downloading_metadata:
|
case torrent_status::downloading_metadata:
|
||||||
if(torrentStatus.download_payload_rate > 0){
|
if(torrentStatus.download_payload_rate > 0){
|
||||||
qDebug("%s is downloading", (const char*)fileHash.toUtf8());
|
//qDebug("%s is downloading", (const char*)fileHash.toUtf8());
|
||||||
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/downloading.png")), Qt::DecorationRole);
|
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/downloading.png")), Qt::DecorationRole);
|
||||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)BTSession->getETA(fileHash)));
|
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)BTSession->getETA(fileHash)));
|
||||||
setRowColor(row, "green");
|
setRowColor(row, "green");
|
||||||
|
@ -469,6 +469,7 @@ bool bittorrent::hasFilteredFiles(QString fileHash) const{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For debug only
|
||||||
void bittorrent::printPausedTorrents(){
|
void bittorrent::printPausedTorrents(){
|
||||||
QString hash;
|
QString hash;
|
||||||
qDebug("Paused Torrents:");
|
qDebug("Paused Torrents:");
|
||||||
@ -695,7 +696,7 @@ void bittorrent::saveFastResumeAndRatioData(){
|
|||||||
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
QString fileHash = QString(misc::toString(h.info_hash()).c_str());
|
||||||
while(!receivedPausedAlert(fileHash)){
|
while(!receivedPausedAlert(fileHash)){
|
||||||
qDebug("Sleeping while waiting that %s is paused", misc::toString(h.info_hash()).c_str());
|
qDebug("Sleeping while waiting that %s is paused", misc::toString(h.info_hash()).c_str());
|
||||||
printPausedTorrents();
|
//printPausedTorrents();
|
||||||
SleeperThread::msleep(500);
|
SleeperThread::msleep(500);
|
||||||
readAlerts();
|
readAlerts();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user