uifw/AvKon/src/AknSettingPage.cpp
branchRCL_3
changeset 25 941195f2d488
parent 23 3d340a0166ff
child 51 fcdfafb36fe7
--- a/uifw/AvKon/src/AknSettingPage.cpp	Tue May 11 16:27:42 2010 +0300
+++ b/uifw/AvKon/src/AknSettingPage.cpp	Tue May 25 12:58:19 2010 +0300
@@ -52,6 +52,14 @@
 #include "aknitemactionmenuregister.h"
 #include "aknqueryeditorindicator.h"
 
+
+
+//
+// the function's definition is in the AknNoteDialog.cpp
+//
+TBool IsFocusedWindowGroup( const CCoeControl* aControl );
+
+
 // This determines the maximum number of digits in the optional number displayed on the
 // top left of the setting page
 const TInt KAknSettingPageMaxOrdinalDigits = 3;
@@ -1425,7 +1433,7 @@
 			iSettingPageObserver->HandleSettingPageEventL(this, MAknSettingPageObserver::EEventSettingCancelled);
 		}
 	
-	if ( GfxTransEffect::IsRegistered( this ) )
+	if ( GfxTransEffect::IsRegistered( this ) && IsFocusedWindowGroup( this ) && IsVisible() )
 	    {
         GfxTransEffect::Begin( this, KGfxControlDisappearAction );
         MakeVisible( EFalse );