messagingfw/senduiservices/src/SendUiImpl.cpp
branchRCL_3
changeset 10 e174c577e901
parent 9 dd93350a5f29
child 12 8147bfb6c710
equal deleted inserted replaced
9:dd93350a5f29 10:e174c577e901
  1391         attachments = CSendUiAttachment::InitAttachmentArrayLCC( 
  1391         attachments = CSendUiAttachment::InitAttachmentArrayLCC( 
  1392             aMessageData->AttachmentArray(), 
  1392             aMessageData->AttachmentArray(), 
  1393             aMessageData->AttachmentHandleArray(),
  1393             aMessageData->AttachmentHandleArray(),
  1394             iCoeEnv->FsSession() );
  1394             iCoeEnv->FsSession() );
  1395         cleanupItems += 2;
  1395         cleanupItems += 2;
       
  1396         
       
  1397         if ( attachments->Count() == 0 )
       
  1398 		     {
       
  1399 		     //there are no attachments, so no point in checking the file rights at all.
       
  1400 		     CleanupStack::PopAndDestroy( cleanupItems );
       
  1401 		     return ETrue;    
       
  1402 		     }
  1396         }   
  1403         }   
  1397     fileRightsEngine->ConfirmDrmFileRightsL( attachments );
  1404     fileRightsEngine->ConfirmDrmFileRightsL( attachments );
  1398     if ( attachments->Count() <= 0 )
  1405     if ( attachments->Count() <= 0 )
  1399         {
  1406         {
  1400         fileRightsEngine->ShowDrmAndMmsInfoL();
  1407         fileRightsEngine->ShowDrmAndMmsInfoL();