diff -r a1caeb42b3a3 -r fcdfafb36fe7 uifw/AvKon/src/AknAppUi.cpp --- a/uifw/AvKon/src/AknAppUi.cpp Thu Jul 15 18:56:19 2010 +0300 +++ b/uifw/AvKon/src/AknAppUi.cpp Thu Aug 19 10:11:06 2010 +0300 @@ -77,6 +77,7 @@ #include #include +#include #include #ifdef RD_SCALABLE_UI_V2 @@ -1815,12 +1816,18 @@ EXPORT_C void CAknAppUi::PrepareToExit() { - // Hide application toolbar to prevent it from showing - // after views are deleted + // + // Hide application toolbar extension view (by toolbar extension) + // if ( CurrentFixedToolbar() ) { - CurrentFixedToolbar()->SetToolbarVisibility( EFalse ); + CAknToolbarExtension* toolbarExt = CurrentFixedToolbar()->ToolbarExtension(); + if ( toolbarExt && toolbarExt->IsShown() ) + { + toolbarExt->SetShown( EFalse ); + } } + if( IsForeground() && Document() ) { //only if focused, otherwise next app HandleForeground may never come.