emailuis/emailui/src/FreestyleEmailUiSendAttachmentsListModel.cpp
branchRCL_3
changeset 13 0396474f30f5
parent 12 f5907b1a1053
child 16 4ce476e64c59
equal deleted inserted replaced
12:f5907b1a1053 13:0396474f30f5
   416 //
   416 //
   417 void CFSEmailUiSendAttachmentsListModel::ReFreshListL()
   417 void CFSEmailUiSendAttachmentsListModel::ReFreshListL()
   418 	{
   418 	{
   419     FUNC_LOG;
   419     FUNC_LOG;
   420 	// empty the list
   420 	// empty the list
   421 	if ( iAttachmentsList )
   421 	if ( !iAttachmentsList ) 
   422 		{
   422 		{
   423 		iAttachmentsList->RemoveAllL();
   423         // Coverity error fix. iAttachmentsList was used also later without null checks
   424         iAttachmentsList->SetFocusedL(ETrue);
   424         return;
   425 		}
   425 		}
   426 
       
   427 	iAttachmentsList->HideListL();
       
   428 	
   426 	
       
   427     iAttachmentsList->RemoveAllL();
       
   428     iAttachmentsList->SetFocusedL(ETrue);
       
   429     iAttachmentsList->HideListL();
   429 	TRect screenRect;
   430 	TRect screenRect;
   430     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   431     AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, screenRect );
   431     iListLayout->SetSize( screenRect.Size() );
   432     iListLayout->SetSize( screenRect.Size() );
   432     iListLayout->UpdateChildrenLayout();
   433     iListLayout->UpdateChildrenLayout();
   433 
   434