phonebookui/Phonebook2/UIControls/src/CPbk2AddItemToContactDlg.cpp
branchRCL_3
changeset 8 5586b4d2ec3e
parent 0 e686773b3f54
child 12 4ae315f230bc
--- a/phonebookui/Phonebook2/UIControls/src/CPbk2AddItemToContactDlg.cpp	Wed Mar 31 21:13:53 2010 +0300
+++ b/phonebookui/Phonebook2/UIControls/src/CPbk2AddItemToContactDlg.cpp	Wed Apr 14 15:45:35 2010 +0300
@@ -392,6 +392,18 @@
     CModel* listBoxModel = new(ELeave) CModel( aAddItems, *iconArray );
     iListBox->Model()->SetItemTextArray(listBoxModel);
     iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);
+    
+    CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
+    if (statusPane)
+        {
+        TInt currentStatusPaneResId = statusPane->CurrentLayoutResId();
+        // Make the statusPane update when it was already set to EMPTY status,
+        // in other case it'll update itself automaticlly
+        if( currentStatusPaneResId == R_AVKON_STATUS_PANE_LAYOUT_EMPTY )
+            {
+            statusPane->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );
+            }
+        }    
     }
 
 // --------------------------------------------------------------------------