connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiView.cpp
changeset 4 77415202bfc8
parent 0 5a93021fdf25
child 8 2e6c4614c58e
child 41 bbb64eb3bdee
equal deleted inserted replaced
3:f7816ffc66ed 4:77415202bfc8
   171 //
   171 //
   172 void CConnectionMonitorUiView::DynInitMenuPaneL( TInt aResourceId,
   172 void CConnectionMonitorUiView::DynInitMenuPaneL( TInt aResourceId,
   173                                                  CEikMenuPane* aMenuPane )
   173                                                  CEikMenuPane* aMenuPane )
   174     {
   174     {
   175     MEikMenuObserver::DynInitMenuPaneL( aResourceId, aMenuPane );
   175     MEikMenuObserver::DynInitMenuPaneL( aResourceId, aMenuPane );
       
   176     // This is a security measure to prevent menu pane updates when
       
   177     // the main view is not active. This should not happen but
       
   178     // just to be safe it is checked.
       
   179     if ( !iContainer )
       
   180         {
       
   181         return;
       
   182         }
   176     switch ( aResourceId )
   183     switch ( aResourceId )
   177         {
   184         {
   178         case R_CONNECTIONMONITORUI_VIEW_MENU:
   185         case R_CONNECTIONMONITORUI_VIEW_MENU:
   179             {
   186             {
   180             if ( !iConnectionArray->MdcaCount() )
   187             if ( !iConnectionArray->MdcaCount() )