@ -45,6 +45,7 @@
# include "kmmsgdict.h"
# include "kmfolderimap.h"
# include "globalsettings.h"
# include "kmacctmgr.h"
# include <mimelib/enum.h>
@ -644,7 +645,17 @@ void KMailICalIfaceImpl::readConfig()
if ( folderParent = = 0 ) {
// Parent folder not found. It was probably deleted. The user will have to
// configure things again.
kdWarning ( 5006 ) < < " Groupware folder " < < parentName < < " not found. Groupware functionality disabled " < < endl ;
kdDebug ( 5006 ) < < " Groupware folder " < < parentName < < " not found. Groupware functionality disabled " < < endl ;
// Or maybe the inbox simply wasn't created on the first startup
KMAccount * account = kmkernel - > acctMgr ( ) - > find ( GlobalSettings : : theIMAPResourceAccount ( ) ) ;
Q_ASSERT ( account ) ;
if ( account ) {
// just in case we were connected already
disconnect ( account , SIGNAL ( finishedCheck ( bool , CheckStatus ) ) ,
this , SLOT ( slotCheckDone ( ) ) ) ;
connect ( account , SIGNAL ( finishedCheck ( bool , CheckStatus ) ) ,
this , SLOT ( slotCheckDone ( ) ) ) ;
}
mUseResourceIMAP = false ;
return ;
} else {
@ -744,6 +755,20 @@ void KMailICalIfaceImpl::readConfig()
reloadFolderTree ( ) ;
}
void KMailICalIfaceImpl : : slotCheckDone ( )
{
QString parentName = GlobalSettings : : theIMAPResourceFolderParent ( ) ;
KMFolder * folderParent = kmkernel - > findFolderById ( parentName ) ;
if ( folderParent ) // cool it exists now
{
KMAccount * account = kmkernel - > acctMgr ( ) - > find ( GlobalSettings : : theIMAPResourceAccount ( ) ) ;
if ( account )
disconnect ( account , SIGNAL ( finishedCheck ( bool , CheckStatus ) ) ,
this , SLOT ( slotCheckDone ( ) ) ) ;
readConfig ( ) ;
}
}
void KMailICalIfaceImpl : : slotRefreshCalendar ( ) { slotRefresh ( " Calendar " ) ; }
void KMailICalIfaceImpl : : slotRefreshTasks ( ) { slotRefresh ( " Task " ) ; }
void KMailICalIfaceImpl : : slotRefreshJournals ( ) { slotRefresh ( " Journal " ) ; }