equal
deleted
inserted
replaced
474 { |
474 { |
475 if ( iFirst + iPosOnScreen == 0 ) |
475 if ( iFirst + iPosOnScreen == 0 ) |
476 { |
476 { |
477 // If in the beginning of the list |
477 // If in the beginning of the list |
478 |
478 |
479 iLast = iItemCount - 1; |
479 if(iItemCount > 0) |
480 iFirst = iLast - iScreenSize; |
480 { |
481 if ( iFirst < 0 ) |
481 iLast = iItemCount - 1; |
482 { |
482 iFirst = iLast - iScreenSize; |
483 iFirst = 0; |
483 if ( iFirst < 0 ) |
484 } |
484 { |
485 iPosOnScreen = iLast - iFirst; |
485 iFirst = 0; |
|
486 } |
|
487 iPosOnScreen = iLast - iFirst; |
|
488 } |
486 } |
489 } |
487 else if ( iPosOnScreen == 0 ) |
490 else if ( iPosOnScreen == 0 ) |
488 { |
491 { |
489 iLast--; |
492 iLast--; |
490 iFirst--; |
493 iFirst--; |
4389 |
4392 |
4390 switch ( aSelection ) |
4393 switch ( aSelection ) |
4391 { |
4394 { |
4392 case EKeyEnter: |
4395 case EKeyEnter: |
4393 case EKeyRightArrow: |
4396 case EKeyRightArrow: |
4394 { |
4397 { |
|
4398 if(iPosOnScreen < iFileList.Count()) |
|
4399 { |
4395 |
4400 |
4396 ret = iMain->UIStore().LoadTestSet( iFileList.operator [](iPosOnScreen)->Des() ); |
4401 ret = iMain->UIStore().LoadTestSet( iFileList.operator [](iPosOnScreen)->Des() ); |
4397 if (ret == KErrNone) |
4402 if (ret == KErrNone) |
4398 { |
4403 { |
4399 ((CTestSetMenu*)iParent)->SetCreated(); |
4404 ((CTestSetMenu*)iParent)->SetCreated(); |
4400 ((CTestSetMenu*)iParent)->SetTestSetFileName(iFileList.operator [](iPosOnScreen)->Des()); |
4405 ((CTestSetMenu*)iParent)->SetTestSetFileName(iFileList.operator [](iPosOnScreen)->Des()); |
4401 } |
4406 } |
4402 return iParent; |
4407 return iParent; |
|
4408 } |
|
4409 else |
|
4410 { |
|
4411 return this; |
|
4412 } |
4403 } |
4413 } |
4404 default: |
4414 default: |
4405 break; |
4415 break; |
4406 } |
4416 } |
4407 |
4417 |