diff -r 2dac0fdba72b -r 191387a8b767 photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp --- a/photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp Wed Apr 14 15:57:24 2010 +0300 +++ b/photosgallery/viewframework/views/viewbase/src/glxviewbase.cpp Tue Apr 27 16:37:53 2010 +0300 @@ -229,10 +229,17 @@ // Allow implementing view to filter menu first ViewDynInitMenuPaneL(aResourceId, aMenuPane); - + + //Since the toolbar is set only incase of grid view we can assume that + //it is in browse mode. + TBool isBrowseMode = EFalse; + if(iUiUtility->GetGridToolBar()) + { + isBrowseMode = ETrue; + } for (TInt i = 0; i < count; i++ ) { - iCommandHandlerList[i]->DynInitMenuPaneL( aResourceId, aMenuPane ); + iCommandHandlerList[i]->DynInitMenuPaneL( aResourceId, aMenuPane, isBrowseMode ); } }