uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsviewmenuhandler.cpp
branchRCL_3
changeset 10 78867dafe7eb
parent 0 5e5d6b214f4f
--- a/uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsviewmenuhandler.cpp	Fri Feb 19 22:41:11 2010 +0200
+++ b/uiservicetab/vimpstdetailsviewplugin/src/cvimpstdetailsviewmenuhandler.cpp	Fri Mar 12 15:41:33 2010 +0200
@@ -15,7 +15,7 @@
 *
 */
 
-
+ 
 #include "cvimpstdetailsviewmenuhandler.h"
 
 #include "cvimpstdetailsviewlistboxmodel.h"
@@ -84,21 +84,27 @@
 void CVIMPSTDetailsViewMenuHandler::DynInitMenuPaneL(TInt aResourceId,
 												CEikMenuPane* aMenuPane )
 	{
-	if (iAiwServiceHandler && iAiwServiceHandler->HandleSubmenuL(*aMenuPane))
-	    {
-	    return;
-	    }
+	if (iAiwServiceHandler)
+		{
+		if ( iAiwServiceHandler->HandleSubmenuL(*aMenuPane))
+            {
+            return;
+            }
+	  }
 	switch (aResourceId)
 		{
 		case R_VIMPSTDETAILSVIEW_MENUPANE:
 			{
 			TInt pos = 0;			
-			if ( iAiwServiceHandler->IsAiwMenu(aResourceId))
-			    {
-			    iAiwServiceHandler->InitializeMenuPaneL( *aMenuPane,
-			            aResourceId, ECCAppDetailsViewAiwBaseCmd,
-			            iAiwServiceHandler->InParamListL() );			           
-			    } 
+ 			if ( iAiwServiceHandler )
+				{
+				if ( iAiwServiceHandler->IsAiwMenu(aResourceId))
+				    {
+				    iAiwServiceHandler->InitializeMenuPaneL( *aMenuPane,
+				            aResourceId, ECCAppDetailsViewAiwBaseCmd,
+				            iAiwServiceHandler->InParamListL() );			           
+				    }
+				} 
 			if ( aMenuPane->MenuItemExists(ECCAppDetailsViewSetTopContactCmd, pos)  )
 				{
 				aMenuPane->SetItemDimmed(ECCAppDetailsViewSetTopContactCmd, ETrue );