mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
- Reset torrent display once it is queued
This commit is contained in:
@@ -262,6 +262,9 @@ void FinishedTorrents::updateFinishedList(){
|
|||||||
} else {
|
} else {
|
||||||
finishedListModel->setData(finishedListModel->index(row, F_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/queued.png"))), Qt::DecorationRole);
|
finishedListModel->setData(finishedListModel->index(row, F_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/queued.png"))), Qt::DecorationRole);
|
||||||
}
|
}
|
||||||
|
// Reset upload speed and seeds/leech
|
||||||
|
finishedListModel->setData(finishedListModel->index(row, F_UPSPEED), 0.);
|
||||||
|
finishedListModel->setData(finishedListModel->index(row, F_LEECH), "0");
|
||||||
setRowColor(row, QString::fromUtf8("grey"));
|
setRowColor(row, QString::fromUtf8("grey"));
|
||||||
}
|
}
|
||||||
if(h.is_paused() || h.is_queued()) continue;
|
if(h.is_paused() || h.is_queued()) continue;
|
||||||
|
|||||||
@@ -520,6 +520,10 @@ void DownloadingTorrents::updateDlList() {
|
|||||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Reset speeds and seeds/leech
|
||||||
|
DLListModel->setData(DLListModel->index(row, DLSPEED), QVariant((double)0.));
|
||||||
|
DLListModel->setData(DLListModel->index(row, UPSPEED), QVariant((double)0.));
|
||||||
|
DLListModel->setData(DLListModel->index(row, SEEDSLEECH), QVariant("0/0"));
|
||||||
setRowColor(row, QString::fromUtf8("grey"));
|
setRowColor(row, QString::fromUtf8("grey"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user