Fix for two minor bugs:

- classification was calculated over checked and unchecked tools
- filter creation depended on the inclusion of classification rules

svn path=/trunk/kdepim/; revision=360187
wilder-work
Andreas Gungl 22 years ago
parent be8813e14e
commit 386f269967
  1. 20
      antispamwizard.cpp

@ -352,14 +352,13 @@ void AntiSpamWizard::accept()
classHamFilter->setConfigureShortcut( TRUE );
classHamFilter->setConfigureToolbar( TRUE );
filterList.append( classHamFilter );
/* Now that all the filters have been added to the list, tell
* the filter manager about it. That will emit filterListUpdate
* which will result in the filter list in kmmainwidget being
* initialized. This should happend only once. */
KMKernel::self()->filterMgr()->appendFilters( filterList );
}
/* Now that all the filters have been added to the list, tell
* the filter manager about it. That will emit filterListUpdate
* which will result in the filter list in kmmainwidget being
* initialized. This should happend only once. */
KMKernel::self()->filterMgr()->appendFilters( filterList );
}
QDialog::accept();
@ -377,13 +376,14 @@ void AntiSpamWizard::checkProgramsSelections()
if ( mProgramsPage->isProgramSelected( (*it).getVisibleName() ) )
{
status = true;
if ( (*it).isSpamTool() )
if ( (*it).isSpamTool() ) {
mSpamToolsUsed = true;
if ( (*it).useBayesFilter() )
canClassify = true;
}
if ( (*it).isVirusTool() )
mVirusToolsUsed = true;
}
if ( (*it).useBayesFilter() )
canClassify = true;
}
if ( mSpamRulesPage )

Loading…
Cancel
Save