messagingappbase/mce/src/MceMessageListboxItemDrawer.cpp
branchRCL_3
changeset 71 17302fa075e1
parent 60 7fdbb852d323
child 77 da6ac9d688df
--- a/messagingappbase/mce/src/MceMessageListboxItemDrawer.cpp	Tue Sep 14 21:11:56 2010 +0300
+++ b/messagingappbase/mce/src/MceMessageListboxItemDrawer.cpp	Wed Sep 15 12:08:45 2010 +0300
@@ -22,6 +22,7 @@
 // INCLUDE FILES
 #include "MceMessageListContainer.h"
 #include "MceMessageListboxItemDrawer.h"
+#include "MceIds.h"
 
 
 // ================= MEMBER FUNCTIONS =======================
@@ -57,7 +58,12 @@
     {
     TListItemProperties properties;
     properties.SetColor( iTextColor );
-
+	//only for MyFolders set the Hidden Selection, no folder should be able to be selected
+    if ( iMessageListContainer.CurrentFolderId() == KMceDocumentsEntryId )
+        {
+    	properties.SetHiddenSelection( iMessageListContainer.IsItemFolder( aItemIndex )  ||
+            iMessageListContainer.SyncMlOutboxOpened() );
+	}
     return properties;
     }