browserui/browser/FavouritesSrc/BrowserBookmarksView.cpp
branchRCL_3
changeset 45 5a044f6358c2
parent 43 b149f0820e5a
child 46 4baee4f15982
equal deleted inserted replaced
43:b149f0820e5a 45:5a044f6358c2
  1124     //thread, its important to refresh when the thread notifies the fresh data.
  1124     //thread, its important to refresh when the thread notifies the fresh data.
  1125     //Call to GetItemsLC above, which inturn calls ManualBMSortL will set iRefresh to false
  1125     //Call to GetItemsLC above, which inturn calls ManualBMSortL will set iRefresh to false
  1126     //Make it true so that latest FavIcon db info is shown     
  1126     //Make it true so that latest FavIcon db info is shown     
  1127     iRefresh = ETrue;
  1127     iRefresh = ETrue;
  1128 
  1128 
  1129 #ifndef BRDO_PERF_IMPROVEMENTS_ENABLED_FF
  1129 #ifdef BRDO_PERF_IMPROVEMENTS_ENABLED_FF 
       
  1130     if ( ApiProvider().Preferences().SearchFeature() ) // hide the button which is not needed
       
  1131         Toolbar()->HideItem( EWmlCmdGoToAddress, ETrue , EFalse);
       
  1132     else
       
  1133         Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, ETrue , EFalse);
       
  1134 #else
  1130     Toolbar()->HideItem( EWmlCmdAddBookmark, ETrue , EFalse);
  1135     Toolbar()->HideItem( EWmlCmdAddBookmark, ETrue , EFalse);
  1131     
  1136     
  1132     //disable both the goto items and activate one of them depending on availability of search feature during bookmarks activation 
  1137     //disable both the goto items and activate one of them depending on availability of search feature during bookmarks activation 
  1133     Toolbar()->HideItem( EWmlCmdGoToAddress, ETrue , EFalse);
  1138     Toolbar()->HideItem( EWmlCmdGoToAddress, ETrue , EFalse);
  1134     Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, ETrue , EFalse ); 
  1139     Toolbar()->HideItem( EWmlCmdGoToAddressAndSearch, ETrue , EFalse ); 
  1584                 
  1589                 
  1585             if( iContainer && iContainer->Listbox() && !iContainer->Listbox()->AnyFoldersL() )
  1590             if( iContainer && iContainer->Listbox() && !iContainer->Listbox()->AnyFoldersL() )
  1586                 {
  1591                 {
  1587                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1592                 aMenuPane->SetItemDimmed( EWmlCmdMoveToFolder, ETrue );
  1588                 }
  1593                 }
  1589             const CFavouritesItem* item;
  1594             const CFavouritesItem* item = NULL;
  1590             if(TheContainer() && TheContainer()->Listbox()) 
  1595             if(TheContainer() && TheContainer()->Listbox()) 
  1591                item =  TheContainer()->Listbox()->CurrentItem();
  1596                item =  TheContainer()->Listbox()->CurrentItem();
  1592                
  1597                
  1593             if  ( ( item ) &&
  1598             if  ( ( item ) &&
  1594                   ( ( item->Uid() == KFavouritesAdaptiveItemsFolderUid ) ||
  1599                   ( ( item->Uid() == KFavouritesAdaptiveItemsFolderUid ) ||