mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 12:34:19 +00:00
- Fix crash when pausing a torrent if queueing system is disabled
This commit is contained in:
parent
360c8500bb
commit
88ea548eaf
@ -750,6 +750,7 @@ bool bittorrent::pauseTorrent(QString hash) {
|
|||||||
// Remove it from TorrentsStartTime hash table
|
// Remove it from TorrentsStartTime hash table
|
||||||
TorrentsStartTime.remove(hash);
|
TorrentsStartTime.remove(hash);
|
||||||
TorrentsStartData.remove(hash);
|
TorrentsStartData.remove(hash);
|
||||||
|
if(queueingEnabled) {
|
||||||
// Remove it from queued list if present
|
// Remove it from queued list if present
|
||||||
if(queuedDownloads->contains(hash))
|
if(queuedDownloads->contains(hash))
|
||||||
queuedDownloads->removeAll(hash);
|
queuedDownloads->removeAll(hash);
|
||||||
@ -757,6 +758,7 @@ bool bittorrent::pauseTorrent(QString hash) {
|
|||||||
queuedUploads->removeAll(hash);
|
queuedUploads->removeAll(hash);
|
||||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued"))
|
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued"))
|
||||||
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued");
|
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued");
|
||||||
|
}
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user