Somehow reading local configs defaults to the global one

if no local config is available. So we have to double the
check for HeadersOnlyheader.

BUG: 95666

svn path=/trunk/kdepim/; revision=373432
wilder-work
Andreas Gungl 22 years ago
parent ae2817ada3
commit ec89aa9b98
  1. 3
      antispamwizard.cpp
  2. 4
      antispamwizard.h

@ -582,7 +582,8 @@ void AntiSpamWizard::ConfigReader::readAndMergeConfig()
for (int i = 1; i <= user_registeredTools; i++)
{
KConfigGroup toolConfig( mConfig, groupName.arg( i ) );
mergeToolConfig( readToolConfig( toolConfig ) );
if( !toolConfig.readBoolEntry( "HeadersOnly", false ) )
mergeToolConfig( readToolConfig( toolConfig ) );
}
// Make sure to have add least one tool listed even when the
// config file was not found or whatever went wrong

@ -204,8 +204,8 @@ namespace KMail {
public:
ConfigReader( WizardMode mode,
QValueList<SpamToolConfig> & configList );
~ConfigReader( );
~ConfigReader( );
QValueList<SpamToolConfig> & getToolList() { return mToolList; }
void readAndMergeConfig();
@ -238,7 +238,7 @@ namespace KMail {
/* generic checks if any option in a page is checked */
bool anySpamOptionChecked();
bool anyVirusOptionChecked();
/* convenience function calling the appropriate filter manager method */
const QString uniqueNameFor( const QString & name );

Loading…
Cancel
Save