messagingappbase/mce/src/MceMessageListView.cpp
changeset 2 0bf1d54f37d9
parent 1 d09ac5c1e252
child 5 4697dfb2d7ad
equal deleted inserted replaced
1:d09ac5c1e252 2:0bf1d54f37d9
   226 	    if (aPrevViewId != TDRVIEWID ) 
   226 	    if (aPrevViewId != TDRVIEWID ) 
   227         {
   227         {
   228     // Reset the sort order
   228     // Reset the sort order
   229     iFolderItemArray->Reset();
   229     iFolderItemArray->Reset();
   230        }
   230        }
       
   231 	if ( iMsgListContainer &&
       
   232 	     iCurrentListType != GetFolderListBoxType())
       
   233 	    {
       
   234 	    ListboxTypeChangedL();
       
   235 	    }
       
   236 	else
       
   237 	    {
       
   238 	    CreateListboxL();        
       
   239 	    }	    
   231     if ( iMsgListContainer )
   240     if ( iMsgListContainer )
   232         {
   241         {
   233         iMsgListContainer->SetSortTypeL( iSortOrder, iOrdering );
   242         iMsgListContainer->SetSortTypeL( iSortOrder, iOrdering );
   234         }
   243         }
   235         
   244         
   274                 }
   283                 }
   275         	}
   284         	}
   276         iMceUi->SetDontExitOnNextOperationComplete();
   285         iMceUi->SetDontExitOnNextOperationComplete();
   277         }
   286         }
   278 
   287 
   279     if ( iMsgListContainer &&
       
   280         iCurrentListType != GetFolderListBoxType())
       
   281         {
       
   282         ListboxTypeChangedL();
       
   283         }
       
   284     else
       
   285         {
       
   286         CreateListboxL();        
       
   287         }
       
   288     
   288     
   289     
   289     
   290     if ( iMsgListContainer && aPrevViewId == TDRVIEWID )
   290     if ( iMsgListContainer && aPrevViewId == TDRVIEWID )
   291         {
   291         {
   292         // Save the sort ordering in the message store
   292         // Save the sort ordering in the message store