diff -r 5586b4d2ec3e -r 0d28c1c5b6dd phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp --- a/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp Wed Apr 14 15:45:35 2010 +0300 +++ b/phonebookui/Phonebook2/remotecontactlookup/engine/src/cpbkxrclresultinfodlg.cpp Tue Apr 27 16:23:35 2010 +0300 @@ -594,12 +594,16 @@ //Set NullString to the the NaviPane Decorator //The simplest way of doin things. - iNaviPane = reinterpret_cast( + //Add the navigation decorators only if the usual statuspane layout is used + if ( statusPane->CurrentLayoutResId() == R_AVKON_STATUS_PANE_LAYOUT_USUAL_EXT ) + { + iNaviPane = reinterpret_cast( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidNavi ) ) ); - iNaviDecorator = iNaviPane->CreateNavigationLabelL( KNullDesC ); + iNaviDecorator = iNaviPane->CreateNavigationLabelL( KNullDesC ); - iNaviPane->PushL( *iNaviDecorator ); + iNaviPane->PushL( *iNaviDecorator ); + } } // ---------------------------------------------------------------------------