diff -r f4a778e096c2 -r 9da50d567e3c phonebookui/Phonebook2/MMCExtension/src/CPmuUIExtensionPlugin.cpp --- a/phonebookui/Phonebook2/MMCExtension/src/CPmuUIExtensionPlugin.cpp Wed Sep 01 12:29:52 2010 +0100 +++ b/phonebookui/Phonebook2/MMCExtension/src/CPmuUIExtensionPlugin.cpp Tue Sep 14 20:54:53 2010 +0300 @@ -27,8 +27,8 @@ #include #include #include -#include -#include +#include +#include // System includes #include @@ -82,14 +82,22 @@ case R_PMU_CASCADING_COPY_CONTACT_CARD_MENU : { TBool marked = aControl.ContactsMarked(); - if ( !marked) + // Menu item "To other memory" is not displayed if there is no marked item in the Names List + // Menu item "From other memory" is not displayed if there is marked item in the Names List + TInt pos = 0; + if ( marked ) { - //Not displayed if no marked items in the Names List. - TInt pos; + if ( aMenuPane->MenuItemExists( EPmuCmdImportFromMemoryCard, pos ) ) + { + aMenuPane->SetItemDimmed( EPmuCmdImportFromMemoryCard, ETrue ); + } + } + else + { if ( aMenuPane->MenuItemExists( EPmuCmdExportToMemoryCard, pos ) ) - { - aMenuPane->SetItemDimmed( EPmuCmdExportToMemoryCard, ETrue ); - } + { + aMenuPane->SetItemDimmed( EPmuCmdExportToMemoryCard, ETrue ); + } } break; }