mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
- Fix crash when pausing a torrent if queueing system is disabled
This commit is contained in:
parent
360c8500bb
commit
88ea548eaf
@ -750,13 +750,15 @@ 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);
|
||||||
// Remove it from queued list if present
|
if(queueingEnabled) {
|
||||||
if(queuedDownloads->contains(hash))
|
// Remove it from queued list if present
|
||||||
queuedDownloads->removeAll(hash);
|
if(queuedDownloads->contains(hash))
|
||||||
if(queuedUploads->contains(hash))
|
queuedDownloads->removeAll(hash);
|
||||||
queuedUploads->removeAll(hash);
|
if(queuedUploads->contains(hash))
|
||||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued"))
|
queuedUploads->removeAll(hash);
|
||||||
QFile::remove(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");
|
||||||
|
}
|
||||||
return change;
|
return change;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user