messagingappbase/mce/src/MceMessageListView.cpp
changeset 2 0bf1d54f37d9
parent 1 d09ac5c1e252
child 5 4697dfb2d7ad
--- 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 )