mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
- Fixed broken action "start All / Pause all" due to latest code changes
This commit is contained in:
parent
32f478a8c2
commit
d57062a45a
1 changed files with 2 additions and 0 deletions
|
@ -1215,6 +1215,7 @@ void GUI::on_actionPause_All_triggered() {
|
||||||
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
||||||
if(!h.is_valid() || h.is_paused()) continue;
|
if(!h.is_valid() || h.is_paused()) continue;
|
||||||
change = true;
|
change = true;
|
||||||
|
h.pause();
|
||||||
if(h.is_seed()) {
|
if(h.is_seed()) {
|
||||||
// Update in finished list
|
// Update in finished list
|
||||||
finishedTorrentTab->pauseTorrent(h.hash());
|
finishedTorrentTab->pauseTorrent(h.hash());
|
||||||
|
@ -1289,6 +1290,7 @@ void GUI::on_actionStart_All_triggered() {
|
||||||
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
QTorrentHandle h = QTorrentHandle(*torrentIT);
|
||||||
if(!h.is_valid() || !h.is_paused()) continue;
|
if(!h.is_valid() || !h.is_paused()) continue;
|
||||||
change = true;
|
change = true;
|
||||||
|
h.resume();
|
||||||
if(h.is_seed()) {
|
if(h.is_seed()) {
|
||||||
// Update in finished list
|
// Update in finished list
|
||||||
finishedTorrentTab->resumeTorrent(h.hash());
|
finishedTorrentTab->resumeTorrent(h.hash());
|
||||||
|
|
Loading…
Reference in a new issue