photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdetails.cpp
branchRCL_3
changeset 18 78ad99c24f08
parent 15 191387a8b767
--- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdetails.cpp	Tue May 11 16:13:40 2010 +0300
+++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdetails.cpp	Tue May 25 12:42:31 2010 +0300
@@ -178,6 +178,11 @@
 			if ( err == KErrNone )
 				{
 				TInt focusIndex = aList.FocusIndex();
+				// In Grid view, details will be shown for the selected item
+				if (aList.SelectionCount() == 1) 
+					{ 
+					focusIndex = aList.SelectedItemIndex(0); 
+					} 
 				TGlxMedia item = aList.Item(focusIndex);
 				const CGlxMedia* media = item.Properties();