fixed: by adding nzb-files with assigned category and empty option <CategoryX.DefScript> the global option <DefScript> should be used but it wasn't

This commit is contained in:
Andrey Prygunkov
2013-04-19 17:34:17 +00:00
parent 33cb2d108e
commit c9b7a11a89

View File

@@ -1008,7 +1008,7 @@ void PostScriptController::InitParamsForNewNZB(NZBInfo* pNZBInfo)
if (pNZBInfo->GetCategory() && strlen(pNZBInfo->GetCategory()) > 0)
{
Options::Category* pCategory = g_pOptions->FindCategory(pNZBInfo->GetCategory());
if (pCategory)
if (pCategory && pCategory->GetDefScript() && strlen(pCategory->GetDefScript()) > 0)
{
szDefScript = pCategory->GetDefScript();
}