commonuis/CommonDialogs/src/CAknFileSelectionEventHandler.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 0 2f259fa3e83a
child 15 08e69e956a8c
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
   286 
   286 
   287     switch( aEvent )
   287     switch( aEvent )
   288         {
   288         {
   289         case ERightSoftkeyPress: // USER HAS HIT RIGHT SOFTKEY
   289         case ERightSoftkeyPress: // USER HAS HIT RIGHT SOFTKEY
   290             {
   290             {
       
   291             while( iModel->DirectoryLevel() > 0 ) // Find until existing contents
       
   292                 {
       
   293                 entries = iModel->GotoParentFolderL();
       
   294                 PopIndices( aTopItemIndex, aFocusedItemIndex );
       
   295                 if( entries > 0 || entries < KErrNotFound )
       
   296                     {
       
   297                     break;
       
   298                     }
       
   299                 }
   291             if( iModel->DirectoryLevel() > 0 ) // We are not in the root folder
   300             if( iModel->DirectoryLevel() > 0 ) // We are not in the root folder
   292                 {
   301                 {
   293                 while( ETrue ) // Find until existing contents
       
   294                     {
       
   295                     entries = iModel->GotoParentFolderL();
       
   296                     PopIndices( aTopItemIndex, aFocusedItemIndex );
       
   297                     if( entries > 0 || entries < KErrNotFound )
       
   298                         {
       
   299                         break;
       
   300                         }
       
   301                     }
       
   302                 if( entries > 0 )
   302                 if( entries > 0 )
   303                     {
   303                     {
   304                     if (aFocusedItemIndex >= entries)
   304                     if (aFocusedItemIndex >= entries)
   305                         {
   305                         {
   306                         aFocusedItemIndex = entries - 1;
   306                         aFocusedItemIndex = entries - 1;