calendarui/views/src/calentodoview.cpp
branchRCL_3
changeset 23 51372538e3d3
parent 16 55d60436f00b
child 25 bf573002ff72
--- a/calendarui/views/src/calentodoview.cpp	Sun Jun 20 22:50:42 2010 +0200
+++ b/calendarui/views/src/calentodoview.cpp	Sun Jun 20 22:55:39 2010 +0200
@@ -424,6 +424,11 @@
             iServices.IssueCommandL( aCommand );
             }
             break;
+        case ECalenShowCalendars:            
+			SaveCurrentItemIndexL();
+            Container()->MarkAllL( EFalse ); 
+			CCalenNativeView::HandleCommandL( aCommand );
+			break;
         default:
             SaveCurrentItemIndexL();
             CCalenNativeView::HandleCommandL( aCommand );
@@ -681,7 +686,7 @@
             // setup edit/mark menu
             case R_CALENDAR_DONE_UNDONE:
                 {
-                if( Container()->MarkedCount() == 1)
+                if( Container()->MarkedCount() )
                     {
                     TBool crossout( EFalse );
                     crossout = CheckMarkedItemCompletedL();
@@ -928,6 +933,7 @@
             
             if(colIdArray.Count() > 0)
                 {
+                colIdArray.Close();
                 if( !iServices.InstanceViewL(colIdArray) )
                     {
                     TRACE_EXIT_POINT;
@@ -941,6 +947,7 @@
                 }
             else
                 {
+                colIdArray.Close();
                 if( !iServices.InstanceViewL() )
                     {
                     TRACE_EXIT_POINT;
@@ -952,7 +959,6 @@
                     return CCalenView::EKeepGoing;
                     }
                 }
-            colIdArray.Reset();
             }
             // else fall through...
         case ERequestedInstanceView: