Don't create the groupware folders under "Local Folders" if the account that was

holding them was deleted (or the parent folder of the groupware ones was removed),
that makes no sense.

svn path=/branches/proko2/kdepim/; revision=326815
wilder-work
David Faure 22 years ago
parent 7449ec7c5e
commit 67075fdd5f
  1. 8
      kmailicalifaceimpl.cpp

@ -1214,9 +1214,11 @@ void KMailICalIfaceImpl::readConfig()
KMFolderType folderType;
KMFolder* folderParent = kmkernel->findFolderById( parentName );
if( folderParent == 0 ) {
// Maybe nothing was configured?
folderParentDir = &(kmkernel->folderMgr()->dir());
folderType = KMFolderTypeMaildir;
// 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;
mUseResourceIMAP = false;
return;
} else {
folderParentDir = folderParent->createChildFolder();
folderType = folderParent->folderType();

Loading…
Cancel
Save