Minor optimization

wilder-work
Montel Laurent 15 years ago
parent 755c9d44fe
commit d7e9e84d14
  1. 7
      collectionpane.cpp

@ -59,6 +59,7 @@ bool CollectionStorageModel::isOutBoundFolder( const Akonadi::Collection& c ) co
}
QSharedPointer<FolderCollection> fd = FolderCollection::forCollection( c, false );
if ( fd ) {
const QString folderString( fd->idString() );
// default setting
const KPIMIdentities::Identity & identity =
kmkernel->identityManager()->identityForUoidOrDefault( fd->identity() );
@ -74,9 +75,9 @@ bool CollectionStorageModel::isOutBoundFolder( const Akonadi::Collection& c ) co
c == CommonKernel->templatesCollectionFolder() ||
c == CommonKernel->draftsCollectionFolder() )
return true;
} else if ( identity.drafts() == fd->idString() ||
identity.templates() == fd->idString() ||
identity.fcc() == fd->idString() )
} else if ( identity.drafts() == folderString ||
identity.templates() == folderString ||
identity.fcc() == folderString )
// drafts, templates or sent of the identity
return true;
else

Loading…
Cancel
Save