idlefw/plugins/mcsplugin/settings/src/mcspluginsettingscontainer.cpp
branchRCL_3
changeset 130 67f2ed48ad91
parent 122 6cadd6867c17
equal deleted inserted replaced
122:6cadd6867c17 130:67f2ed48ad91
   184                 // if the last selected item was application, set selected item to -1
   184                 // if the last selected item was application, set selected item to -1
   185                 if ( itm.type == EApplication )
   185                 if ( itm.type == EApplication )
   186                     {
   186                     {
   187                         appListIndex = -1;
   187                         appListIndex = -1;
   188                     }
   188                     }
   189                 
   189 
   190                 // if the selected item is hidden, set selected item to -1
       
   191                 TBool itemHidden = iModel->BkmList()->ItemHidden( appListIndex );
       
   192                 if ( itemHidden )
       
   193                     {
       
   194                     appListIndex = -1;
       
   195                     }
       
   196                 
       
   197                 changed = HandleBookmarkChangeCommandL( appListIndex, current );
   190                 changed = HandleBookmarkChangeCommandL( appListIndex, current );
   198 
   191 
   199                 }
   192                 }
   200             // user wants to select application
   193             // user wants to select application
   201             else if ( selection == 0 )
   194             else if ( selection == 0 )
   477         RMenuNotifier::EItemsAddedRemoved,
   470         RMenuNotifier::EItemsAddedRemoved,
   478         iNotifyWatcher->iStatus );
   471         iNotifyWatcher->iStatus );
   479     iNotifyWatcher->WatchNotify( this );
   472     iNotifyWatcher->WatchNotify( this );
   480     }
   473     }
   481 
   474 
   482 // ---------------------------------------------------------------------------
       
   483 // Sets the currently selected item
       
   484 // ---------------------------------------------------------------------------
       
   485 //
       
   486 void CMCSPluginSettingsContainer::SetCurrentItemIndex( TInt aIdx )
       
   487     {
       
   488     if( iListBox )
       
   489         {
       
   490         iListBox->SetCurrentItemIndex( aIdx );
       
   491         }
       
   492     }
       
   493 
       
   494 // End of File.
   475 // End of File.