uifw/AvKon/src/AknAppUi.cpp
branchRCL_3
changeset 23 3d340a0166ff
parent 18 0aa5fbdfbc30
child 25 941195f2d488
--- 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 <gfxtranseffect/gfxtranseffect.h>
 
 #include <aknSDData.h>
-#include <SecondaryDisplay/AknSecondaryDisplayDefs.h>
+#include <secondarydisplay/AknSecondaryDisplayDefs.h>
 #include <startupdomainpskeys.h>
 
 #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.