equal
deleted
inserted
replaced
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() ) |