diff -r d0529222e3f0 -r bd874ee5e5e2 menucontentsrv/handlersrc/menuapphandler.cpp --- a/menucontentsrv/handlersrc/menuapphandler.cpp Fri Feb 19 23:07:29 2010 +0200 +++ b/menucontentsrv/handlersrc/menuapphandler.cpp Fri Mar 12 15:43:54 2010 +0200 @@ -18,6 +18,7 @@ #include "mcsmenuitem.h" #include "menucompletedoperation.h" #include "menuuninstalloperation.h" +#include "menutasklist.h" #include #include @@ -26,7 +27,6 @@ #include #include #include -#include // ================= MEMBER FUNCTIONS ======================= @@ -158,9 +158,8 @@ User::LeaveIfError( wsSession.Connect() ); CleanupClosePushL( wsSession ); - TApaTaskList* taskList = new (ELeave) TApaTaskList( wsSession ); - TApaTask task = taskList->FindApp( aUid ); - + CMenuTaskList* taskList = CMenuTaskList::NewL( wsSession ); + TApaTask task = taskList->FindRootApp( aUid ); delete taskList; if ( task.Exists() )