emailuis/emailui/src/FreestyleMessageHeaderURLEventHandler.cpp
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 20 efd4f1afd43e
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
   243     
   243     
   244     if ( found == KErrNotFound )
   244     if ( found == KErrNotFound )
   245         {
   245         {
   246         // Probably, only the headers were downloaded. Check if attachments 
   246         // Probably, only the headers were downloaded. Check if attachments 
   247         // were downloaded later.
   247         // were downloaded later.
   248         iAttachmentsListModel->UpdateListL( iMailMessage );
   248         if( iMailMessage )
       
   249             {
       
   250             iAttachmentsListModel->UpdateListL( iMailMessage );
       
   251             }
   249         for (TInt i=0; i<iAttachmentsListModel->GetModel().Count(); i++)
   252         for (TInt i=0; i<iAttachmentsListModel->GetModel().Count(); i++)
   250             {
   253             {
   251             if ( iAttachmentsListModel->GetModel()[i].partData.iMessagePartId.Id() == id )
   254             if ( iAttachmentsListModel->GetModel()[i].partData.iMessagePartId.Id() == id )
   252                 {
   255                 {
   253                 found = i;
   256                 found = i;