calendarui/controller/src/calendeleteui.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 0 f979ecb2b13e
child 15 9711e452b5e9
--- a/calendarui/controller/src/calendeleteui.cpp	Wed Mar 31 21:29:10 2010 +0300
+++ b/calendarui/controller/src/calendeleteui.cpp	Wed Apr 14 15:55:57 2010 +0300
@@ -39,6 +39,8 @@
 #include <caleninstanceid.h>            // TCalenInstanceId
 #include <calenactionuiutils.h>
 #include <calcalendarinfo.h>
+#include <calentoolbar.h>
+#include <akntoolbar.h>
 
 #include "calendarui_debug.h"           // Debug
 #include "calendeleteui.h"
@@ -379,6 +381,14 @@
 			    {
 			    MarkedEntriesDeletedL();    
 			    }
+			MCalenToolbar* toolbarImpl = iController.Services().ToolbarOrNull(); 
+            if (toolbarImpl)
+                {
+                CAknToolbar& toolbar = toolbarImpl->Toolbar();
+    
+                // dim clear and clear all toolbar buttons
+                toolbar.SetItemDimmed(ECalenNewMeeting, EFalse, ETrue);
+                }
 			}
         else
             {