calendarui/controller/src/calenmultipledbui.cpp
branchRCL_3
changeset 15 9711e452b5e9
parent 14 21239b3bcd78
child 16 55d60436f00b
--- a/calendarui/controller/src/calenmultipledbui.cpp	Wed Apr 14 15:55:57 2010 +0300
+++ b/calendarui/controller/src/calenmultipledbui.cpp	Tue Apr 27 16:36:22 2010 +0300
@@ -115,11 +115,10 @@
      
      iGc->Reset();
              
-     TAknWindowComponentLayout tempLayout = 
-                AknLayoutScalable_Apps::list_cale_time_pane_g6( aItemIndex - iListBox->TopItemIndex()) ;     
+     TAknWindowComponentLayout tempLayout = AknLayoutScalable_Apps::list_cale_time_pane_g6(0);     
 
-        TAknLayoutRect colourstrips;
-        colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
+     TAknLayoutRect colourstrips;
+     colourstrips.LayoutRect( actualItemRect, tempLayout.LayoutLine() );
       
      iGc->SetPenColor( CGraphicsContext::ENullPen );
      iGc->DrawRect( colourstrips.Rect() );
@@ -521,7 +520,7 @@
               HBufC* calendarFileName = 
                   calendarInfoList[currentIndex]->FileNameL().AllocLC();
               if (!(calendarFileName->CompareF(
-                      _L("c:Calendar1"))))
+                        iController.Services().SessionL().DefaultFileNameL())))
                   {
                   aMenuPane->DeleteMenuItem(ECalenCmdDelete);
                   }
@@ -591,7 +590,7 @@
           }
           break;
       case EAknCmdHelp:      
-            if (FeatureManager::FeatureSupported(KFeatureIdHelp)) //ravi
+            if (FeatureManager::FeatureSupported(KFeatureIdHelp))
                 {
                 HlpLauncher::LaunchHelpApplicationL(
                         iCoeEnv->WsSession(),iAvkonAppUi->AppHelpContextL());