diff -r d09ac5c1e252 -r 0bf1d54f37d9 messagingappbase/mce/src/MceMessageListView.cpp --- a/messagingappbase/mce/src/MceMessageListView.cpp Thu Jan 07 12:45:05 2010 +0200 +++ b/messagingappbase/mce/src/MceMessageListView.cpp Mon Jan 18 20:16:40 2010 +0200 @@ -228,6 +228,15 @@ // Reset the sort order iFolderItemArray->Reset(); } + if ( iMsgListContainer && + iCurrentListType != GetFolderListBoxType()) + { + ListboxTypeChangedL(); + } + else + { + CreateListboxL(); + } if ( iMsgListContainer ) { iMsgListContainer->SetSortTypeL( iSortOrder, iOrdering ); @@ -276,15 +285,6 @@ iMceUi->SetDontExitOnNextOperationComplete(); } - if ( iMsgListContainer && - iCurrentListType != GetFolderListBoxType()) - { - ListboxTypeChangedL(); - } - else - { - CreateListboxL(); - } if ( iMsgListContainer && aPrevViewId == TDRVIEWID )