mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
- Web interface by Ishan Arora
This commit is contained in:
parent
0dd84c37a1
commit
5af8bddc16
10 changed files with 538 additions and 167 deletions
|
|
@ -147,7 +147,8 @@ unsigned int DownloadingTorrents::getNbTorrentsInList() const {
|
|||
// Note: do not actually pause the torrent in BT session
|
||||
void DownloadingTorrents::pauseTorrent(QString hash) {
|
||||
int row = getRowFromHash(hash);
|
||||
Q_ASSERT(row != -1);
|
||||
if(row == -1)
|
||||
return;
|
||||
DLListModel->setData(DLListModel->index(row, DLSPEED), QVariant((double)0.0));
|
||||
DLListModel->setData(DLListModel->index(row, UPSPEED), QVariant((double)0.0));
|
||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue