mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
- Fixed pausing of queued torrents
This commit is contained in:
parent
89330e11de
commit
5509e94778
@ -1121,13 +1121,6 @@ void bittorrent::readAlerts() {
|
||||
qDebug("Received finished alert for %s", h.name().toUtf8().data());
|
||||
}
|
||||
}
|
||||
if (torrent_paused_alert* p = dynamic_cast<torrent_paused_alert*>(a.get())) {
|
||||
QTorrentHandle h(p->handle);
|
||||
if(h.is_valid()){
|
||||
h.save_resume_data();
|
||||
qDebug("Received paused alert for %s", h.name().toUtf8().data());
|
||||
}
|
||||
}
|
||||
else if (save_resume_data_alert* p = dynamic_cast<save_resume_data_alert*>(a.get())) {
|
||||
QDir torrentBackup(misc::qBittorrentPath() + "BT_backup");
|
||||
QTorrentHandle h(p->handle);
|
||||
|
@ -319,6 +319,7 @@ void QTorrentHandle::pause() {
|
||||
Q_ASSERT(h.is_valid());
|
||||
h.auto_managed(false);
|
||||
h.pause();
|
||||
h.save_resume_data();
|
||||
}
|
||||
|
||||
void QTorrentHandle::resume() {
|
||||
|
Loading…
Reference in New Issue
Block a user