cmmanager/cmmgr/Framework/Src/uncatdlg.cpp
branchRCL_3
changeset 55 fc7b30ed2058
parent 24 c45d4fe2ff0a
equal deleted inserted replaced
54:984e13af52c4 55:fc7b30ed2058
   198                 {
   198                 {
   199                 // The selected item will be at the same position
   199                 // The selected item will be at the same position
   200                 TInt selected = iListbox->CurrentItemIndex();
   200                 TInt selected = iListbox->CurrentItemIndex();
   201                 TInt noi = iListbox->Model()->NumberOfItems();
   201                 TInt noi = iListbox->Model()->NumberOfItems();
   202                 // If it is the last then the previous will be selected.
   202                 // If it is the last then the previous will be selected.
   203                 if( selected == noi-1 )
   203                 if( ( selected == noi-1 ) && ( selected > 0 ))
   204                     {
   204                     {
   205                     selected--;
   205                     selected--;
   206                     }
   206                     }
   207                 
   207                 
   208                 TRAPD( err, CCmDlg::ProcessCommandL(
   208                 TRAPD( err, CCmDlg::ProcessCommandL(