mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Fix crash when pausing a torrent if queueing system is disabled
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user