landmarksui/uicontrols/src/CLmkAppLmSelectorImpl.cpp
branchRCL_3
changeset 5 41042d2af523
parent 3 3c271c9e6618
child 16 8173571d354e
--- a/landmarksui/uicontrols/src/CLmkAppLmSelectorImpl.cpp	Fri Feb 19 22:45:00 2010 +0200
+++ b/landmarksui/uicontrols/src/CLmkAppLmSelectorImpl.cpp	Fri Mar 12 15:42:12 2010 +0200
@@ -569,14 +569,17 @@
        {
        iDeletionHelper.StoreListInformation( *iListBox, EFalse );
        }
-
    iDeletionHelper.UpdateListIfDeleteHappenedL();
    if( currentItemIndex >= 0 && currentItemIndex < iListBox->Model()->NumberOfItems() )
        {
        iListBox->SetCurrentItemIndex(currentItemIndex);
-       }
-
+       }   
 #endif // RD_SCALABLE_UI_V2
+   TRAPD(err,CPosLandmark* landmark = iDb.ReadLandmarkLC(iNewLmkItemId);CleanupStack::PopAndDestroy( landmark ));
+   if (err == KErrNotFound)
+       {
+       LmItemListProvider().RemoveItem( iNewLmkItemId );
+       }      
     }
 
 // -----------------------------------------------------------------------------