tdf#102005 Fix F6 regression in start center

Change-Id: I152a79b79e75bf87c437dd4dd2976c73198e6b52
Reviewed-on: https://gerrit.libreoffice.org/68185
Tested-by: Jenkins
Reviewed-by: V Stuart Foote <vstuart.foote@utsa.edu>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
(cherry picked from commit 77fe54df21195a1b0483fb06466ced935a186030)
Reviewed-on: https://gerrit.libreoffice.org/69175
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 14b4e66..c11bf24 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -420,15 +420,18 @@
            }
            else // F6
            {
                if(mpAllRecentThumbnails->IsVisible())
                if( mpAllButtonsBox->HasChildPathFocus() )
                {
                    mpAllRecentThumbnails->GrabFocus();
                    return true;
                }
                else if(mpLocalView->IsVisible())
                {
                    mpLocalView->GrabFocus();
                    return true;
                    if(mpAllRecentThumbnails->IsVisible())
                    {
                        mpAllRecentThumbnails->GrabFocus();
                        return true;
                    }
                    else if(mpLocalView->IsVisible())
                    {
                        mpLocalView->GrabFocus();
                        return true;
                    }
                }
            }
        }