photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandleraiwbase.cpp
equal
deleted
inserted
replaced
379 return EFalse; |
379 return EFalse; |
380 } |
380 } |
381 if ( mediaList.SelectionCount() == 0 ) |
381 if ( mediaList.SelectionCount() == 0 ) |
382 { |
382 { |
383 // No items in selection list. Check if focus item is static |
383 // No items in selection list. Check if focus item is static |
|
384 // When image opened from image viewer, metadata will not |
|
385 // available immediately and Uri for that item will be null, |
|
386 // so need to disable aiw commands at that time. Once metadata |
|
387 // been filled, aiw commands should available. |
384 TInt focusIndex = mediaList.FocusIndex(); |
388 TInt focusIndex = mediaList.FocusIndex(); |
385 if(focusIndex != KErrNotFound) |
389 if((mediaList.FocusIndex()!=KErrNotFound)&& |
386 { |
390 (mediaList.Item(focusIndex).Uri()!=KNullDesC)&& |
387 if (!mediaList.Item(focusIndex).IsStatic()) |
391 (!mediaList.Item(focusIndex).IsStatic())) |
388 { |
392 { |
389 // Not static - so enable |
|
390 enabled = ETrue; |
393 enabled = ETrue; |
391 } |
|
392 } |
394 } |
393 } |
395 } |
394 else if ( mediaList.SelectionCount() <= MaxSelectedItems() ) |
396 else if ( mediaList.SelectionCount() <= MaxSelectedItems() ) |
395 { |
397 { |
396 // Count of selected items within range, so enable |
398 // Count of selected items within range, so enable |