diff --git a/index.cpp b/index.cpp index 9f415abaa..c8a02ee93 100644 --- a/index.cpp +++ b/index.cpp @@ -167,7 +167,7 @@ bool KMMsgIndex::isIndexed( KMFolder* folder ) const { void KMMsgIndex::setEnabled( bool e ) { kdDebug( 5006 ) << "KMMsgIndex::setEnabled( " << e << " )" << endl; KConfigGroup config( KMKernel::config(), "text-index" ); - if ( config.readBoolEntry( "enabled", e ) == e ) return; + if ( config.readBoolEntry( "enabled", !e ) == e ) return; config.writeEntry( "enabled", e ); if ( e ) { switch ( mState ) {