commonuis/CommonDialogs/src/CAknFileSelectionEventHandler.cpp
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 0 2f259fa3e83a
child 15 08e69e956a8c
--- a/commonuis/CommonDialogs/src/CAknFileSelectionEventHandler.cpp	Fri Mar 12 15:43:43 2010 +0200
+++ b/commonuis/CommonDialogs/src/CAknFileSelectionEventHandler.cpp	Mon Mar 15 12:41:34 2010 +0200
@@ -288,17 +288,17 @@
         {
         case ERightSoftkeyPress: // USER HAS HIT RIGHT SOFTKEY
             {
+            while( iModel->DirectoryLevel() > 0 ) // Find until existing contents
+                {
+                entries = iModel->GotoParentFolderL();
+                PopIndices( aTopItemIndex, aFocusedItemIndex );
+                if( entries > 0 || entries < KErrNotFound )
+                    {
+                    break;
+                    }
+                }
             if( iModel->DirectoryLevel() > 0 ) // We are not in the root folder
                 {
-                while( ETrue ) // Find until existing contents
-                    {
-                    entries = iModel->GotoParentFolderL();
-                    PopIndices( aTopItemIndex, aFocusedItemIndex );
-                    if( entries > 0 || entries < KErrNotFound )
-                        {
-                        break;
-                        }
-                    }
                 if( entries > 0 )
                     {
                     if (aFocusedItemIndex >= entries)