equal
deleted
inserted
replaced
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; |