[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - 2 commits - fpicker/source
Szymon Kłos
eszkadev at gmail.com
Sat Oct 3 12:44:20 PDT 2015
fpicker/source/office/RemoteFilesDialog.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 06b8f344d50d14315c4fcdf2433da8f6d71baca3
Author: Szymon Kłos <eszkadev at gmail.com>
Date: Sat Oct 3 21:43:52 2015 +0200
Focus for file list after opening folder
Change-Id: Ibac322b873315fd8a0ec63c930f4c76562a5e704
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index d7b32f4..7ee410e 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -576,6 +576,8 @@ FileViewResult RemoteFilesDialog::OpenURL( OUString const & sURL )
if( m_eMode != REMOTEDLG_MODE_SAVE )
m_pName_ed->SetText( "" );
+
+ m_pFileView->GrabFocus();
}
else
{
commit 544a360bbd81d0d6d68cf29e0eeb1ddeaeaff350
Author: Szymon Kłos <eszkadev at gmail.com>
Date: Sat Oct 3 21:36:42 2015 +0200
Focus for file name field after using it to open folder
Change-Id: Ic3ae0c899c5feea659d22100f98dbeca4df217eb
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 83cd52c..d7b32f4 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -1142,6 +1142,9 @@ IMPL_LINK_NOARG_TYPED ( RemoteFilesDialog, OkHdl, Button*, void )
OpenURL( sPathNoExt );
m_pName_ed->SetText( "" );
+ if( !bSelected )
+ m_pName_ed->GrabFocus();
+
return;
}
More information about the Libreoffice-commits
mailing list