From 58bc17f6dfaa9c8ca3529b0b1975ab9a2947afef Mon Sep 17 00:00:00 2001 From: Lus Pedro Coelho Date: Sat, 15 Oct 2005 17:02:32 +0000 Subject: [PATCH] Check correctly for whether we are enabling the index svn path=/branches/KDE/3.5/kdepim/; revision=470926 --- index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.cpp b/index.cpp index 44414b64d..aaf75cc5b 100644 --- a/index.cpp +++ b/index.cpp @@ -167,7 +167,7 @@ void KMMsgIndex::setEnabled( bool e ) { kdDebug( 5006 ) << "KMMsgIndex::setEnabled( " << e << " )" << endl; KConfig* config = KMKernel::config(); KConfigGroupSaver saver( 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 ) {