fixed #253: delete-with-parking sometimes didn't park

This commit is contained in:
Andrey Prygunkov
2016-08-03 19:55:07 +02:00
parent 45753410df
commit 35643b0207

View File

@@ -778,7 +778,7 @@ bool QueueEditor::EditGroup(NzbInfo* nzbInfo, DownloadQueue::EEditAction action,
nzbInfo->SetParking(action == DownloadQueue::eaGroupParkDelete &&
g_Options->GetKeepHistory() > 0 &&
!nzbInfo->GetUnpackCleanedUpDisk() &&
(nzbInfo->GetSuccessArticles() > 0 || nzbInfo->GetFailedArticles() > 0));
(nzbInfo->GetCurrentSuccessArticles() > 0 || nzbInfo->GetCurrentFailedArticles() > 0));
nzbInfo->SetAvoidHistory(action == DownloadQueue::eaGroupFinalDelete);
nzbInfo->SetDeletePaused(allPaused);
if (action == DownloadQueue::eaGroupDupeDelete)