photosgallery/viewframework/commandhandlers/commandhandlerbase/src/glxmpxcommandcommandhandler.cpp
equal
deleted
inserted
replaced
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 } |