mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Queueing bug fix
This commit is contained in:
parent
27a71ba123
commit
b6b74752a5
1 changed files with 11 additions and 1 deletions
|
@ -612,8 +612,18 @@ void bittorrent::setUnfinishedTorrent(QString hash) {
|
||||||
TorrentsStartData[hash] = h.total_payload_download();
|
TorrentsStartData[hash] = h.total_payload_download();
|
||||||
TorrentsStartTime[hash] = QDateTime::currentDateTime();
|
TorrentsStartTime[hash] = QDateTime::currentDateTime();
|
||||||
}
|
}
|
||||||
// Add it to downloadQueue
|
|
||||||
if(queueingEnabled) {
|
if(queueingEnabled) {
|
||||||
|
// Remove it from uploadQueue
|
||||||
|
if(uploadQueue->contains(hash)) {
|
||||||
|
uploadQueue->removeAll(hash);
|
||||||
|
queuedDownloads->removeAll(hash);
|
||||||
|
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".prio"))
|
||||||
|
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".prio");
|
||||||
|
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued"))
|
||||||
|
QFile::remove(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".queued");
|
||||||
|
updateUploadQueue();
|
||||||
|
}
|
||||||
|
// Add it to downloadQueue
|
||||||
if(!downloadQueue->contains(hash)) {
|
if(!downloadQueue->contains(hash)) {
|
||||||
downloadQueue->append(hash);
|
downloadQueue->append(hash);
|
||||||
saveTorrentPriority(hash, downloadQueue->size()-1);
|
saveTorrentPriority(hash, downloadQueue->size()-1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue