photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerback.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 12 ce1c7ad1f18b
child 15 191387a8b767
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerback.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerback.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -151,9 +151,12 @@
 	    aCommandId );
 	if(EAknSoftkeyClose == aCommandId)
 		{
-        GLX_LOG_INFO("CGlxCommandHandlerBack::ExecuteL::goto \
+        GLX_LOG_INFO("CGlxCommandHandlerBack::ExecuteL::go to \
 	                    root in UI hierarchy");
-        iNavigationalState->NavigateToParentL();
+        CMPXCollectionPath* newState = CMPXCollectionPath::NewL();
+        CleanupStack::PushL( newState );
+        iNavigationalState->NavigateToL( *newState );
+        CleanupStack::PopAndDestroy( newState );
 		consume = ETrue;
 		}   
 	else if ( aCommandId == EAknSoftkeyBack )