phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycard.cpp
branchRCL_3
changeset 12 4ae315f230bc
parent 9 0d28c1c5b6dd
--- a/phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycard.cpp	Tue May 11 16:00:21 2010 +0300
+++ b/phonebookui/Phonebook2/ccapplication/ccamycardplugin/src/ccappmycard.cpp	Tue May 25 12:26:45 2010 +0300
@@ -356,6 +356,13 @@
     {
     if( !iStoreCallBack )
         {
+        if ( !iMyCard && iForceCreateMyCard )
+            {
+            // Disable LSK if new contact will be created
+            // to avoid opening wrong menu
+            iPlugin.EnableOptionsMenu( EFalse );
+            }
+        
         iStoreCallBack = CTimerCallBack::NewL(
             TCallBack( &CCCAppMyCard::OpenStoresL, this ) );
 
@@ -650,6 +657,12 @@
         
         iDialogIsRunning = ETrue;
         dlg->ExecuteLD();
+        
+        if( aFlags & TPbk2ContactEditorParams::ENewContact )
+            {
+            // Enable LSK in my card view after edit dialog is opened
+            iPlugin.EnableOptionsMenu( ETrue );
+            }
         }
 	
 	// if field was created, destroy it