diff -r 72b543305e3a -r d09ac5c1e252 messagingappbase/mce/src/MceMainViewListView.cpp --- a/messagingappbase/mce/src/MceMainViewListView.cpp Thu Dec 17 08:44:11 2009 +0200 +++ b/messagingappbase/mce/src/MceMainViewListView.cpp Thu Jan 07 12:45:05 2010 +0200 @@ -188,6 +188,11 @@ BaseConstructL( R_MCE_MAIN_VIEW ); // CMceMainViewListView::ConstructL( EMceListTypeMainView ); + iMsgListContainer = CMceMainViewListContainer::NewL( + ClientRect(), + KMsvRootIndexEntryIdValue, + EMceListTypeMainView ); + iMsgListContainer->SetMopParent( this ); } // ---------------------------------------------------- @@ -318,15 +323,9 @@ void CMceMainViewListView::CreateContainerAndActivateL() { MCELOGGER_ENTERFN("CreateContainerAndActivateL()"); - if ( !iMsgListContainer ) + if ( iMsgListContainer ) { - iMsgListContainer = CMceMainViewListContainer::NewL( - ClientRect(), - iSession, - iBitmapResolver, - KMsvRootIndexEntryIdValue, - EMceListTypeMainView ); - iMsgListContainer->SetMopParent( this ); + iMsgListContainer->CreateListItemsL( iSession, iBitmapResolver ); iMsgListContainer->ListItems()->SetListItemArrayObserver( this ); ResetBitmapsL(); iMsgListContainer->SetMskL();