mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-09 07:40:19 +08:00
- Set the number of seeds/leechs to 0/0 when pausing torrents
This commit is contained in:
parent
ec0d6229c6
commit
c3abdc3743
@ -1251,6 +1251,7 @@ void GUI::pauseAll(){
|
||||
DLListModel->setData(DLListModel->index(i, STATUS), QVariant(tr("Paused")));
|
||||
DLListModel->setData(DLListModel->index(i, ETA), QVariant((qlonglong)-1));
|
||||
DLListModel->setData(DLListModel->index(i, NAME), QVariant(QIcon(":/Icons/skin/paused.png")), Qt::DecorationRole);
|
||||
DLListModel->setData(DLListModel->index(i, SEEDSLEECH), QVariant("0/0"));
|
||||
setRowColor(i, "red");
|
||||
setInfoBar(tr("All downloads were paused."));
|
||||
}
|
||||
@ -1275,6 +1276,7 @@ void GUI::pauseSelection(){
|
||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
setInfoBar(tr("'%1' paused.", "xxx.avi paused.").arg(QString(BTSession.getTorrentHandle(fileHash).name().c_str())));
|
||||
DLListModel->setData(DLListModel->index(row, NAME), QIcon(":/Icons/skin/paused.png"), Qt::DecorationRole);
|
||||
DLListModel->setData(DLListModel->index(row, SEEDSLEECH), QVariant("0/0"));
|
||||
setRowColor(row, "red");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user