--- a/phonebookui/Phonebook2/Commands/src/CPbk2CommandHandler.cpp Tue May 11 16:00:21 2010 +0300
+++ b/phonebookui/Phonebook2/Commands/src/CPbk2CommandHandler.cpp Tue May 25 12:26:45 2010 +0300
@@ -705,16 +705,13 @@
CEikMenuPane* aMenuPane,
MPbk2ContactUiControl& aControl )
{
- // ETrue if all selected contacts are read-only
- TBool readOnly = AreSelectedContactsFromReadOnlyStoreL( aControl );
-
switch (aResourceId)
{
case R_PHONEBOOK2_NAMESLIST_CONTEXT_MENU_MARKED_ITEMS: // FALLTHROUGH
case R_PHONEBOOK2_NAMESLIST_DELETE_MENU:
{
// Weed out commands not meant to be used with read only stores
- if (readOnly)
+ if (AreSelectedContactsFromReadOnlyStoreL( aControl ))
{
aMenuPane->SetItemDimmed(EPbk2CmdDeleteMe, ETrue);
}
@@ -727,7 +724,7 @@
iContactRelocator->IsPhoneMemoryInConfigurationL();
// Weed out commands not meant to be used with read only stores
- if (readOnly)
+ if (AreSelectedContactsFromReadOnlyStoreL( aControl ))
{
aMenuPane->SetItemDimmed(EPbk2CmdDeleteMe, ETrue);
aMenuPane->SetItemDimmed(EPbk2CmdEditMe, ETrue);
@@ -770,7 +767,7 @@
case R_PHONEBOOK2_CONTACTINFO_CONTEXT_MENU:
{
// Weed out commands not meant to be used with read only stores
- if (readOnly)
+ if (AreSelectedContactsFromReadOnlyStoreL( aControl ))
{
aMenuPane->SetItemDimmed(EPbk2CmdEditMe, ETrue);
}