browserui/browser/BrowserAppSrc/BrowserContentView.cpp
changeset 33 97c9f46387be
parent 32 92a061761a7b
child 37 481242ead638
equal deleted inserted replaced
32:92a061761a7b 33:97c9f46387be
  1936                                 R_BROWSER_OK_NOTE,
  1936                                 R_BROWSER_OK_NOTE,
  1937                                 iBookmarksModel->StringResourceId
  1937                                 iBookmarksModel->StringResourceId
  1938                                 ( *item, CBrowserFavouritesModel::ESaved ) );
  1938                                 ( *item, CBrowserFavouritesModel::ESaved ) );
  1939                     queryName = EFalse;
  1939                     queryName = EFalse;
  1940                     AddBMUidToLastPlaceToCurrentListL( item->Uid() );
  1940                     AddBMUidToLastPlaceToCurrentListL( item->Uid() );
       
  1941                     
       
  1942                     // To retain FavIcon in iconDatabase, we need to reference icon bitmap reference at least once
       
  1943                     HBufC* url = ApiProvider().BrCtlInterface().PageInfoLC(TBrCtlDefs::EPageInfoUrl);
       
  1944                     CGulIcon *icon = ApiProvider().BrCtlInterface().GetBitmapData(*url, TBrCtlDefs::EBitmapFavicon);
       
  1945                     CleanupStack::PopAndDestroy(); //url
       
  1946                     delete icon;
  1941                     }
  1947                     }
  1942                 else if( KErrAlreadyExists == err )
  1948                 else if( KErrAlreadyExists == err )
  1943                     {
  1949                     {
  1944                     TBrowserDialogs::InfoNoteL(
  1950                     TBrowserDialogs::InfoNoteL(
  1945                             R_BROWSER_INFO_NOTE, R_WML_NAME_ALREADY_IN_USE );
  1951                             R_BROWSER_INFO_NOTE, R_WML_NAME_ALREADY_IN_USE );