diff -r 0aa5fbdfbc30 -r 3d340a0166ff uifw/AvKon/src/AknAppUi.cpp --- a/uifw/AvKon/src/AknAppUi.cpp Tue Apr 27 16:55:05 2010 +0300 +++ b/uifw/AvKon/src/AknAppUi.cpp Tue May 11 16:27:42 2010 +0300 @@ -69,7 +69,7 @@ #include #include -#include +#include #include #include "transitionmanager.h" @@ -1809,6 +1809,12 @@ EXPORT_C void CAknAppUi::PrepareToExit() { + // Hide application toolbar to prevent it from showing + // after views are deleted + if ( CurrentFixedToolbar() ) + { + CurrentFixedToolbar()->SetToolbarVisibility( EFalse ); + } if( IsForeground() && Document() ) { //only if focused, otherwise next app HandleForeground may never come.