Check correctly for whether we are enabling the index

svn path=/branches/KDE/3.5/kdepim/; revision=470926
wilder-work
Lus Pedro Coelho 21 years ago
parent cd2ef2956a
commit 58bc17f6df
  1. 2
      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 ) {

Loading…
Cancel
Save