mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
- Pause torrents in error state
This commit is contained in:
parent
37158a32ad
commit
55ff924e60
@ -450,7 +450,10 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GUI::setPaused(QTorrentHandle &h) const {
|
void GUI::setPaused(QTorrentHandle &h) const {
|
||||||
if(!h.is_paused()) return;
|
if(!h.is_paused()) {
|
||||||
|
// FIXME in v1.6.0: Add Error state and stop using pause for this
|
||||||
|
h.pause();
|
||||||
|
}
|
||||||
qDebug("Marking torrent %s as paused", h.hash().toLocal8Bit().data());
|
qDebug("Marking torrent %s as paused", h.hash().toLocal8Bit().data());
|
||||||
if(h.is_seed()) {
|
if(h.is_seed()) {
|
||||||
// In finished list
|
// In finished list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user