photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmpxcommandcommandhandler.cpp
branchRCL_3
changeset 19 420f6808bf21
parent 13 bcb43dc84c44
child 23 b023a8d2866a
equal deleted inserted replaced
18:78ad99c24f08 19:420f6808bf21
    92     // show confirmation note
    92     // show confirmation note
    93     consume = ConfirmationNoteL(aCommandId, aList);
    93     consume = ConfirmationNoteL(aCommandId, aList);
    94 
    94 
    95     // Check if the selected / focused file(s)s have been deleted from
    95     // Check if the selected / focused file(s)s have been deleted from
    96 	// another application while the confirmation note is displayed
    96 	// another application while the confirmation note is displayed
    97     if (((selectionCount > 0) && (aList.SelectionCount() == 0)) ||
    97     if (((selectionCount > 0) && (aList.SelectionCount() == 0))
    98         ((selectionCount == 0) &&
    98 			|| ((selectionCount == 0) && aList.Count() && (focusedMedia.Id()
    99         (focusedMedia.Id() != aList.Item(aList.FocusIndex()).Id())))
    99 					!= aList.Item(aList.FocusIndex()).Id())))
   100 		{
   100 		{
   101 		// All the selected / focused item(s) have been deleted,
   101 		// All the selected / focused item(s) have been deleted,
   102 		// do not allow the command to execute.
   102 		// do not allow the command to execute.
   103 		consume = EFalse;
   103 		consume = EFalse;
   104 		}
   104 		}