diff --git a/kmailicalifaceimpl.cpp b/kmailicalifaceimpl.cpp index b89af0ee2..001672c5e 100644 --- a/kmailicalifaceimpl.cpp +++ b/kmailicalifaceimpl.cpp @@ -1401,7 +1401,7 @@ void KMailICalIfaceImpl::folderContentsTypeChanged( KMFolder* folder, // Notify that the old folder resource is no longer available emit subresourceDeleted( folderContentsType( folder->storage()->contentsType() ), location ); - if ( contentsType == 0 ) { + if ( contentsType == KMail::ContentsTypeMail ) { // Delete the old entry, stop listening and stop here delete mExtraFolders.take( location ); folder->disconnect( this ); @@ -1411,7 +1411,7 @@ void KMailICalIfaceImpl::folderContentsTypeChanged( KMFolder* folder, } else { if ( ef && !ef->folder ) // deleted folder, clean up delete mExtraFolders.take( location ); - if ( contentsType == 0 ) + if ( contentsType == KMail::ContentsTypeMail ) return; //kDebug() << "registering" << location <<" as extra folder"; diff --git a/kmkernel.cpp b/kmkernel.cpp index 0a540c5f9..5d6a9f7b0 100644 --- a/kmkernel.cpp +++ b/kmkernel.cpp @@ -1469,7 +1469,7 @@ void KMKernel::init() mBackgroundTasksTimer->setSingleShot( true ); connect( mBackgroundTasksTimer, SIGNAL( timeout() ), this, SLOT( slotRunBackgroundTasks() ) ); #ifdef DEBUG_SCHEDULER // for debugging, see jobscheduler.h - mBackgroundTasksTimer->start( 10000 ); // 10s minute, singleshot + mBackgroundTasksTimer->start( 10000 ); // 10s, singleshot #else mBackgroundTasksTimer->start( 5 * 60000 ); // 5 minutes, singleshot #endif