calendarui/controller/src/calenviewmanager.cpp
branchRCL_3
changeset 14 21239b3bcd78
parent 13 1984aceb8774
child 16 55d60436f00b
--- a/calendarui/controller/src/calenviewmanager.cpp	Wed Mar 31 21:29:10 2010 +0300
+++ b/calendarui/controller/src/calenviewmanager.cpp	Wed Apr 14 15:55:57 2010 +0300
@@ -1340,7 +1340,14 @@
     {
     TRACE_ENTRY_POINT;
     TRACE_EXIT_POINT;
-    return iToolbar;
+    if (iToolbar)
+        {
+        if (iToolbar->IsICalenToolBar())
+            {
+            return iToolbar;
+            }
+        }
+    return NULL;
     }        
     
 // ----------------------------------------------------------------------------