Official eMule-Board: Setautocat(), But With Choice - Official eMule-Board

Jump to content


Page 1 of 1

Setautocat(), But With Choice

#1 User is offline   Borschtsch 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-November 04

Posted 12 September 2005 - 04:34 PM

eMule 0.46c
In a Search Window when we select a file to download using a specific Category, Auto cat-assignment (if it is used for one or more categories) can override our selection (effect is similar for pasting ED2k-link into the transfer window too)
I think, that SetAutoCat() function must work, when we select All category for search result or for pasting ED2k-link on the transfer window.

DownloadQueue.Cpp

Original said:

void CDownloadQueue::SetAutoCat(CPartFile* newfile){
if(thePrefs.GetCatCount()==1)
  return;
CString catExt;

for (int ix=1;ix<thePrefs.GetCatCount();ix++){


Modified said:

void CDownloadQueue::SetAutoCat(CPartFile* newfile){
if(thePrefs.GetCatCount()==1 || newfile->GetCategory() > 0)
  return;
CString catExt;

for (int ix=1;ix<thePrefs.GetCatCount();ix++){

Sorry, if someone already posted about this ;)

This post has been edited by Borschtsch: 13 September 2005 - 12:42 AM

0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users